![](/img/trans.png)
[英]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.