PopupWindow基础设置
来源:互联网 发布:golang select 编辑:程序博客网 时间:2024/06/05 10:41
popupWindow=new PopupWindow(MainActivity.this);
View popupView=getLayoutInflater().inflate(R.layout.selectedpopupwindow, null);
popupWindow.setContentView(popupView);
popupWindow.setWidth(LayoutParams.MATCH_PARENT);
popupWindow.setHeight(LayoutParams.MATCH_PARENT);
popupWindow.setBackgroundDrawable(new BitmapDrawable());
setBackgroundDrawable如果不设置这个弹出框会有点上移的感觉,
这里可以设置new BitmapDrawable(),也可以new ColorDrawable(),也可以直接null,就都不会有问题了,不知道具体是什么意思
popupWindow.setOutsideTouchable(true);
打开popupWindow.showAtPosition(XX,XX,X,X);
关闭popupWindow: popupWindow.dismiss();
0 0
- PopupWindow基础设置
- Android PopupWindow设置
- 为PopupWindow设置动画
- Popupwindow 属性设置
- Android PopupWindow 相关设置
- PopupWindow 设置动画无效
- listView中设置PopUpWindow
- popupwindow设置大小无效
- PopupWindow设置背景
- PopupWindow的基础使用
- PopUpWindow基础使用详解
- PopupWindow 的基础使用
- 设置PopupWindow为圆角
- android PopupWindow显示位置设置
- android popupwindow设置任意透明度
- android PopupWindow显示位置设置
- android PopupWindow显示位置设置
- PopupWindow的设置以及效果
- Java学习5--File类
- PostgreSQL 客户端下查看表,视图,function,切换数据库等
- MySQL索引背后的数据结构及算法原理
- cfx3.0.4必备jar包
- SDUT 3189 Reverse Rot(水题)
- PopupWindow基础设置
- C#对象序列化与反序列化
- 用Java编写自己的机器人 Robot类的应用
- 不会是应该的么
- POJ 1573 & POJ 2632(两道有趣的Robot)实例
- StoryBoard+AutoLayout实战开发小技巧
- pg_restore数据库恢复指令
- 任正非接班人李一男离开华为时给属下的忠告
- 第2章 第3题