PopupWindow和AlertDialog本质区别为:AlertDialog是非阻塞式对话框:AlertDialog弹出时,后台还可以做事情;而PopupWindow是阻塞式对话框:PopupWindow弹出时,程序会等待,在PopupWindow退出前,程序一直等待,只有当我们调用了dismiss方法的后,PopupWindow退出,程序才会向..
android popupwindow大集合
最近业余时间在整理一些资料,发现popupwindow在APP 应用开发还是比较广泛的,今天列举了几种常见的 分享一下
一、自定义下拉列表,类似于网页中三级联动的
二、仿UC底部的MENU菜单
三、仿照微信
四、仿照拍照上传
源码下载地址:http://download.csdn.net/deta...
分类:
移动开发 时间:
2014-12-04 19:59:10
阅读次数:
165
xml
最外层加android:background="#aa000000"
设置popupwindow,handler,如果隔多少秒消失还需要handler发空消息
设置popupwindow:
private void showPopup(View view) {
popupWindow = new PopupWindow(view,
Layo...
分类:
其他好文 时间:
2014-12-02 09:04:23
阅读次数:
141
/** * 设置listview item的点击事件 */ lv_app_manager.setOnItemClickListener(new OnItemClickListener() { @Override ...
/** * 点击弹出 PopupWindow 初始化菜单 */ private void initPopupWindow() { PopupWindowAdapter adapter = new PopupWindowAdapter(); ...
layoutInflater = LayoutInflater.from(mContext); final Dialog dialog = new Dialog(mContext); View popView = layoutInflater.inflate(R.layout.popupwindow, null); //设置Dialog没有标题,这个一定要在设置...
分类:
移动开发 时间:
2014-11-28 12:50:55
阅读次数:
144
HtmlPage.PopupWindow HtmlPopupWindowOptions option = new HtmlPopupWindowOptions(); option.Directories = true;//是否开启ie地址栏 option....
分类:
Web程序 时间:
2014-11-27 14:21:51
阅读次数:
151
Android的对话框有两种:PopupWindow和AlertDialog。它们的不同点在于:AlertDialog的位置固定,而PopupWindow的位置可以随意AlertDialog是非阻塞线程的,而PopupWindow是阻塞线程的PopupWindow的位置按照有无偏移分,可以分为偏移和...
分类:
移动开发 时间:
2014-11-25 12:19:10
阅读次数:
189
在Android应用中,popWindow用的越来越多了,我今天总结了一下我写的popuWindow方法,一步一步教你写,让你看完就会运用popupWindow实现动画效果...
转载请注明出处:http://blog.csdn.net/yangyu20121224/article/details/9093821 博主在这篇文章中将会继续围绕顶部标题栏专题来进行实例讲解,今天要讲解的主题是分别使用PopupWindow和Activity两种不同的方式来实现仿微信顶部...
分类:
微信 时间:
2014-11-18 13:25:51
阅读次数:
476