您的位置:首页 > 运维架构

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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: