简体   繁体   中英

Popupwindow: ShowAsDropDown as top-right instead of bottom-left?

是否可以对PopupWindows使用showAsDropDown并使它们在右上方向滑动?

yes it's possible. You can try this

mWindow.showAtLocation(mRootView, Gravity.TOP|Gravity.RIGHT, 0, distanceFromTop);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM