2015年5月12日星期二

PopupWindow 控件上边显示

mFileBoxButton.getLocationOnScreen(mBottomMenulocation);
                mFileBoxPopupWindow.showAtLocation(mFileBoxButton, Gravity.BOTTOM,0, DoContent.ScreenHeigh-mBottomMenulocation[1]);

int[] mBottomMenulocation

getLocationOnScreen这个挺实用的. 获取对应应用的坐标

没有评论:

发表评论