Android PopupWindow

 

Android PopupWindow
        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);
Android PopupWindow

 

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);
Android PopupWindow
        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);//定位
Android PopupWindow

Android PopupWindow,布布扣,bubuko.com

Android PopupWindow

上一篇:This application failed to start because it could not find or load the Qt platform plugin “windows”错误解决方法


下一篇:Android shape