首页 > 移动平台 > 详细

Android PopupWindow

时间:2014-02-27 07:17:22      阅读:559      评论:0      收藏:0      [点我收藏+]

 

bubuko.com,布布扣
        LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        View inflaterView = inflater.inflate(R.layout.fuel_popup, null);
        PopupWindow popupWindow = new PopupWindow(inflaterView, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, true);
        popupWindow.setBackgroundDrawable(new ColorDrawable(Color.GRAY));
        popupWindow.setOutsideTouchable(true);
        popupWindow.showAtLocation(composerButtonsShowHideButton, Gravity.CENTER, 0, 0);
bubuko.com,布布扣

 

1
2
3
4
5
6
LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View inflaterView = inflater.inflate(R.layout.fuel_popup, null);
PopupWindow popupWindow = new PopupWindow(inflaterView, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, true);
popupWindow.setBackgroundDrawable(new ColorDrawable(Color.GRAY));
popupWindow.setOutsideTouchable(true);
popupWindow.showAtLocation(composerButtonsShowHideButton, Gravity.CENTER, 0, 0);
bubuko.com,布布扣
        LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        View inflaterView = inflater.inflate(R.layout.fuel_popup, null);
        PopupWindow popupWindow = new PopupWindow(inflaterView, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, true);
        popupWindow.setBackgroundDrawable(new ColorDrawable(Color.GRAY));
        popupWindow.setOutsideTouchable(true);
        popupWindow.showAtLocation(composerButtonsShowHideButton, Gravity.CENTER, 0, 0);//定位
bubuko.com,布布扣

Android PopupWindow,布布扣,bubuko.com

Android PopupWindow

原文:http://www.cnblogs.com/Launchercher/p/3568939.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!