mFileBoxButton.getLocationOnScreen(mBottomMenulocation);
mFileBoxPopupWindow.showAtLocation(mFileBoxButton, Gravity.BOTTOM,0, DoContent.ScreenHeigh-mBottomMenulocation[1]);
int[] mBottomMenulocation
getLocationOnScreen这个挺实用的. 获取对应应用的坐标
没有评论:
发表评论