当前位置:首页 > Windows程序 > 正文

PopupWindow弹出菜单

2021-03-25 Windows程序

showAsDropDown(View anchor):相对某个控件的位置(正左下方),无偏移 showAsDropDown(View anchor, int xoff, int yoff):相对某个控件的位置,有偏移 showAtLocation(View parent, int gravity, int x, int y):相对于父控件的位置(例如正中央Gravity.CENTER,下方Gravity.BOTTOM等),,可以设置偏移或无偏移

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/66983.html