是否可以使用showAsDropDown来控制PopupWindows的弹出方向,使其向右上方滑动?
showAsDropDown
PopupWindows
是的,这是可能的。您可以尝试这个。
mWindow.showAtLocation(mRootView, Gravity.TOP|Gravity.RIGHT, 0, distanceFromTop);