View pview = inflater.inflate(R.layout.popup_example,(ViewGroup)findViewById(R.layout.main));
PopupWindow pw = new PopupWindow(pview);
pw.showAtLocation(v, Gravity.LEFT,0,0);
pw.update(8,-70,150,270);
//if onclick written here, it gives null pointer exception.
ImageButton img=(ImageButton)pview.findViewById(R.id.home);
img.setOnClickListener(new OnClickListener()
{
public void onClick(View v)
{
Intent.....
}
});
PopupWindow的使用
原创mb649166f4c151e 博主文章分类:android ©著作权
文章标签 clementine 文章分类 JavaScript 前端开发
下一篇:右键菜单及选中
-
git的使用
git的学习记录
git 推送 远程库 -
springSecurity的使用
实现通过security实现 登录、注销、权限认证等功能
spring redis java security -
Android PopupWindow的使用
它是浮在别的窗口之上的.下面我将给大家做一个简单的Demo,类似于音乐播放器
PopupWindow android java ide -
popupWindow使用详解
popupWindow说起来简单,但是使用略麻烦,今天带大家来看看怎么使用
popupwindo android 弹出框 ide xml -
Android开发PopupWindow的使用
Android开发PopupWindow的使用
android android studio java xml ide