80,471
社区成员




Display the content view in a popup window anchored to the bottom-left corner of the anchor view. If there is not enough room on screen to show the popup in its entirety, this method tries to find a parent scroll view to scroll. If no parent scroll view can be scrolled, the bottom-left corner of the popup is pinned at the top left corner of the anchor view.
mPW = new PopupWindow(v, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, false);
mPW.showAsDropDown(mNumpad);
会导致 PopupWindow 在最顶部显示,无法正常的 View 左下方显示:
mPW = new PopupWindow(v, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, false);
mPW.showAsDropDown(mNumpad);
会导致 PopupWindow 在最顶部显示,无法正常的 View 左下方显示:
mPW = new PopupWindow(v, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, false);
mPW.showAsDropDown(mNumpad);
mPW = new PopupWindow(v, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, false);
mPW.showAsDropDown(mNumpad);
会导致 PopupWindow 在最顶部显示,无法正常的 View 左下方显示: