int[] location = new int[2];
this.控件.getLocationOnScreen(location);// 获得指定控件的坐标
popupWindow.showAsDropDown(this.viewControl, x,y);只要设置好控件xy就可以了。
PopWindow弹出在任意位置。
最新推荐文章于 2024-04-11 15:33:02 发布
int[] location = new int[2];
this.控件.getLocationOnScreen(location);// 获得指定控件的坐标
popupWindow.showAsDropDown(this.viewControl, x,y);只要设置好控件xy就可以了。