[英]PopupWindow .showAsDropDown() unable to shift left or right (But up and down both work)
[英]Popupwindow: ShowAsDropDown as top-right instead of bottom-left?
是否可以对PopupWindows
使用showAsDropDown
并使它们在右上方向滑动?
是的,这是可能的。 你可以试试这个
mWindow.showAtLocation(mRootView, Gravity.TOP|Gravity.RIGHT, 0, distanceFromTop);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.