popupwindow
来源:互联网 发布:ubuntu 16.04安装jdk 编辑:程序博客网 时间:2024/05/22 22:10
popupwindow和dialog添加动画方式相同
mPopupWindow=new PopupWindow(AppApplication.getApplication()); View viewPopup=getLayoutInflater().inflate(R.layout.layout_fragment_chart_popup,null); mPopupWindow.setContentView(viewPopup); mPopupWindow.setWidth(ViewGroup.LayoutParams.WRAP_CONTENT); mPopupWindow.setHeight(ViewGroup.LayoutParams.WRAP_CONTENT); //去掉阴影部分 mPopupWindow.setBackgroundDrawable(new BitmapDrawable(null,"")); //在默认情况下弹出的窗口不可定焦 mPopupWindow.setFocusable(true); mPopupWindow.setOutsideTouchable(true); //mPopupWindow.setTouchable(true); mPopupWindow.showAsDropDown(mImageViewPopup);// View popupview=getLayoutInflater().inflate(R.layout.layout_fragment_chart_popup,null);// PopupWindow popupWindow=new PopupWindow(popupview, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);// popupWindow.setContentView(popupview);// popupWindow.setFocusable(true);// popupWindow.setOutsideTouchable(true);// popupWindow.showAsDropDown(mImageViewPopup);// popupWindow.setTouchable(true);//设置popupwindow可触摸
0 0
- popupwindow
- popupWindow
- PopupWindow
- PopupWindow
- PopupWindow
- PopupWindow
- PopupWindow
- popupwindow
- PopupWindow
- PopupWindow
- PopupWindow
- PopupWindow
- PopupWindow
- PopupWindow
- PopupWindow
- popupwindow
- popupwindow
- PopupWindow
- VS2013常用快捷键大全
- java.lang.NullPointerException at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked()
- 分类算法之贝叶斯网络(Bayesian networks)
- 树莓派准备工作--在无屏幕无ip情况下连接树莓派 linux
- 九度考研真题 清华 2003-3清华1070:今年的第几天 日期
- popupwindow
- uniDAC的安装和使用
- 九度考研真题 清华 2011-3清华题目1088:剩下的树 hash
- jQuery+JSON三级联动效果,通用
- OpenGL矩阵转换详解
- Base64加密原理
- NSURLProtocol处理重定向时需要注意301和302状态
- 微信支付与分享
- Service之跨进程调用服务ADIL详解(二)