请教各位大侠怎么实现? 请教这个弹出的黑色的按钮框是怎么实现的呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 大侠,请问您有相关的代码demo么? OVERLAY?多加了一层?或者加了一张透明的图? 贴一段代码 LayoutInflater mLayoutInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE); final ViewGroup menuView = (ViewGroup) mLayoutInflater.inflate(你的自资源文件id, null, true); mPopupWindow = new PopupWindow(menuView, LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT, true); mPopupWindow.setBackgroundDrawable(new BitmapDrawable()); mPopupWindow.setOutsideTouchable(true); mPopupWindow.setFocusable(true);点击title的按钮触发mPopupWindow.showAsDropDown(View view); 向第三方程序填充用户名和密码 android模拟器与手机获取网络资源的问题 android 3G模块端口映射到PC上 查看android 源码时,ctrl+鼠标点击私有方法无法跳转? android widget放了在桌面一些时间就消失了 关于类的初级问题 android service里的监听器 关闭屏幕就没了 关于Android开发环境 做360浮动菜单点击后的二级菜单的问题 新人求指导 我来了,android系统源代码115下载 标题要长 布局问题
大侠,请问您有相关的代码demo么?
final ViewGroup menuView = (ViewGroup) mLayoutInflater.inflate(你的自资源文件id, null, true);
mPopupWindow = new PopupWindow(menuView, LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT, true);
mPopupWindow.setBackgroundDrawable(new BitmapDrawable());
mPopupWindow.setOutsideTouchable(true);
mPopupWindow.setFocusable(true);点击title的按钮触发mPopupWindow.showAsDropDown(View view);