popupWindow的弹窗在正上方

来源:互联网 发布:怎么提高网络延迟 编辑:程序博客网 时间:2024/05/01 22:48
int[] location  = new int[2];                        getLocationInWindow(location);                        int x  = location[0];                        int y = location[1];                        //显示在popupwindow的正上方                        popupWindow.showAtLocation(MySpinner.this, Gravity.TOP|Gravity.LEFT, x,y);

0 0