popwindow 点击空白处不触发下面的控件的解决方案:
2015-05-07 15:03
274 查看
popwindow 点击空白处不触发下面的控件的解决方案:
View popupWindow_view = getLayoutInflater().inflate(R.layout.mainleft,
null, false);
lineLeftXinyuan = (LinearLayout) popupWindow_view
.findViewById(R.id.line_mainleft_xinyuan);
txtModifyPwd = (TextView) popupWindow_view
.findViewById(R.id.txt_mainleft_modifypwd);
txtAboutus = (TextView) popupWindow_view
.findViewById(R.id.txt_mainleft_aboutus);
txtModifyPwd.setOnClickListener(this);
txtAboutus.setOnClickListener(this);
lineLeftXinyuan.setOnClickListener(this);
popLeft = new PopupWindow(popupWindow_view, LayoutParams.WRAP_CONTENT,
LayoutParams.MATCH_PARENT, true);
// 这里是位置显示方式,在屏幕的左侧
popLeft.setBackgroundDrawable(new BitmapDrawable());
popLeft.setFocusable(true);
popLeft.setOutsideTouchable(true);
popLeft.setAnimationStyle(R.style.popAnimation);
popLeft.showAtLocation(imgLoginIcon, Gravity.LEFT, 0, 0);
View popupWindow_view = getLayoutInflater().inflate(R.layout.mainleft,
null, false);
lineLeftXinyuan = (LinearLayout) popupWindow_view
.findViewById(R.id.line_mainleft_xinyuan);
txtModifyPwd = (TextView) popupWindow_view
.findViewById(R.id.txt_mainleft_modifypwd);
txtAboutus = (TextView) popupWindow_view
.findViewById(R.id.txt_mainleft_aboutus);
txtModifyPwd.setOnClickListener(this);
txtAboutus.setOnClickListener(this);
lineLeftXinyuan.setOnClickListener(this);
popLeft = new PopupWindow(popupWindow_view, LayoutParams.WRAP_CONTENT,
LayoutParams.MATCH_PARENT, true);
// 这里是位置显示方式,在屏幕的左侧
popLeft.setBackgroundDrawable(new BitmapDrawable());
popLeft.setFocusable(true);
popLeft.setOutsideTouchable(true);
popLeft.setAnimationStyle(R.style.popAnimation);
popLeft.showAtLocation(imgLoginIcon, Gravity.LEFT, 0, 0);
相关文章推荐
- 在Activity中弹出popwindow,再点击popwindow里面的控件弹出另一个popwindow时报错
- popwindow弹出后点击外部控件响应点击事件
- jquery 获取点击事件的id;jquery如何获取当前触发事件的控件ID值
- 解决方案:c#鼠标离开到子控件也触发MouseLeave事件的解决方法
- 控件设置为focusable为true后要点击第2下才能触发OnClick事件
- iScroll中事件点击触发两次解决方案
- 关于Android PopupWindow中实用Spinner控件点击APP Crash情况整理!
- popwindow点击外部区域 返回键 关闭,关闭时候的监听
- IE下点击事件触发window.onbeforeunload 事件的解决办法
- 带旋转箭头的popupWindow的外部点击事件和控件点击事件冲突解决
- popwindow,弹出框,popwindow点击事件冲突问题很好的解决
- 点击Listview弹出PopWindow的用法
- android popwindow类似QQ中控件
- Popuwindow点击外部控件切换popuwindow——解决点击外部事件不响应问题。
- window.onpopstate无法触发解决办法
- 控件点击事件会穿透给下面的界面--解决办法
- popwindow显示在控件左方
- Android popupWindow 点击外部消失,点击外部其他控件触发其他事件
- easyui datebox控件点击今天按钮不触发onSelect事件的解决方法
- 点击Listview弹出PopWindow的用法