FlycoDialog_Master--PopupWindow
来源:互联网 发布:网络教育入学考试科目 编辑:程序博客网 时间:2024/06/06 05:57
CustomPopup
新建SimpleCustomPop 继承BasePopup
private class SimpleCustomPop extends BasePopup<SimpleCustomPop> { private TextView mTvItem1; public SimpleCustomPop(Context context) { super(context); } @Override public View onCreatePopupView() { //加载poupwind里布局文件 View inflate = View.inflate(mContext, R.layout.popup_custom, null); mTvItem1 = (TextView) inflate.findViewById(R.id.tv_item_1); return inflate; } @Override public void setUiBeforShow() { //设置点击事件 mTvItem1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { } }); } }
弹出poupwindow
SimpleCustomPop mQuickCustomPopup = new SimpleCustomPop(mContext);mQuickCustomPopup .alignCenter(true)//是否是控件居中对齐 .anchorView(mTvCenter)//控件 .gravity(Gravity.BOTTOM)//居控件的底部 只能选TOP和BOTTOM .showAnim(new SlideTopEnter()) //显示动画 BounceTopEnter BounceBottomEnter .dismissAnim(new SlideTopExit()) //消失动画 .offset(0, 0) //第一个参数 距左边的距离 第二个参数 居控件的距离 .dimEnabled(false) .show();
BubblePopup
更简单
//加载布局 可以找到控件 设置控件里的参数View inflate = View.inflate(MainActivity.this, R.layout.popup_bubble_image, null);BubblePopup bubblePopup=new BubblePopup(MainActivity.this,inflate);bubblePopup.anchorView(mTvCenter)//控件 .gravity(Gravity.BOTTOM) .showAnim(new SlideRightEnter()) .dismissAnim(new SlideLeftExit()) .autoDismiss(false)//是否自动消失 .show();
0 0
- FlycoDialog_Master--PopupWindow
- FlycoDialog_Master--对话框
- FlycoDialog_Master多样式对话框
- popupwindow
- popupWindow
- PopupWindow
- PopupWindow
- PopupWindow
- PopupWindow
- PopupWindow
- popupwindow
- PopupWindow
- PopupWindow
- PopupWindow
- PopupWindow
- PopupWindow
- PopupWindow
- PopupWindow
- WCF发布后远程访问的域名解析问题
- Managing Hierarchical Data in MySQL
- Linux tty驱动学习 - 在用户空间设置串口参数操作流程
- 深度学习与自然语言处理之四:卷积神经网络模型(CNN)
- 通过Selector实现 选中、点击文字变色
- FlycoDialog_Master--PopupWindow
- 2016-01-14 FFC
- How to Set Up Replication--MySQL Concept
- JSON
- USACO天梯--Barn Repair
- Hadoop关于处理大量小文件的问题和解决方法
- POJ 1011 Sticks
- struts2 通过下拉框来手动切换国际化
- 机制设计专栏(3)-组合拍卖简介