PopupWindow在初始化创建好后,我想知道它的高度和宽度
PopupWindow popupWindow = new PopupWindow(this);
popupWindow.getContentView().measure(0, 0);
popupWindow.getContentView().getMeasuredWidth();
popupWindow.getContentView().getMeasuredHeight();
本文详细介绍了如何在初始化创建好的PopupWindow后,获取其高度和宽度的方法。
PopupWindow在初始化创建好后,我想知道它的高度和宽度
PopupWindow popupWindow = new PopupWindow(this);
popupWindow.getContentView().measure(0, 0);
popupWindow.getContentView().getMeasuredWidth();
popupWindow.getContentView().getMeasuredHeight();
705

被折叠的 条评论
为什么被折叠?