Popupwindow 问题
来源:互联网 发布:临沂知豆租赁电话 编辑:程序博客网 时间:2024/06/08 15:24
1. 若需要监听PopUpWindow里控件的事件,如PopUpWindow里面一个按钮的事件,那么就需要调用方法setFocusable(true)获得焦点,并且在调用setFocusable(true)方法后,可以通过Back(返回)菜单使PopUpWindow dimiss;另外调用方法setOutsideTouchable(true)后,点击PopUpWindow外面的控件也可以使得PopUpWindow dimiss。需要顺利让PopUpWindow dimiss;PopUpWindow的背景不能为空。
2. 如图:输入框EditText下面为PopUpWindow
3.设置代码如下
PopupWindow popUpWin;
popUpWin=new PopupWindow(listView,edtUserName.getWidth(),LayoutParams.WRAP_CONTENT);
popUpWin.setBackgroundDrawable(new BitmapDrawable());
popUpWin.setFocusable(true);
popUpWin.setOutsideTouchable(true);
popUpWin.showAsDropDown(edtUserName
- Popupwindow 问题
- 在PopupWindow中再弹出PopupWindow问题
- Popupwindow遇到的问题
- Popupwindow显示的问题
- android popupwindow 小问题
- Popupwindow全屏问题
- PopupWindow setOutsideTouchable 问题
- android PopupWindow 显示问题
- popupWindow显示问题
- PopupWindow遮挡键盘问题
- PopupWindow小问题 送分题。
- Android Popupwindow使用问题
- popupwindow不显示问题
- popupwindow点击问题
- PopupWindow高度问题记录
- android之PopupWindow焦点问题
- 解决4.0以下, PopupWindow问题
- 关于popupwindow的dismiss问题
- 项目开发(复习)
- 折腾:OCZ SSD固态硬盘不幸遭遇卡顿假死最终解决
- Freebsd8.1:make:don't know how to make
- android 监控任何数据变化
- VFW.h宏解析 (视频开发必备) ----------纠结了2天憋出来的东西
- Popupwindow 问题
- 浅谈多进程多线程的选择
- Oracle case的实际用法总结
- distcc源码研究二
- 国内外主要的PHP开源CMS系统分析
- Flex 4.6 中使用ActionScript 中载入模块的方法
- 要想成功,需要用开放的心态来开拓视野
- Sorry,I cant afford
- JQuery滑动效果(特别的好用哦)