PopupWindow在初始化创建好后,我想知道它的高度和宽度
PopupWindow popupWindow = new PopupWindow(this);
popupWindow.getContentView().measure(0, 0);
popupWindow.getContentView().getMeasuredWidth();
popupWindow.getContentView().getMeasuredHeight();
PopupWindow在初始化创建好后,我想知道它的高度和宽度
PopupWindow popupWindow = new PopupWindow(this);
popupWindow.getContentView().measure(0, 0);
popupWindow.getContentView().getMeasuredWidth();
popupWindow.getContentView().getMeasuredHeight();