`
h416756139
  • 浏览: 359592 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

PopupWindow定位全解析

阅读更多

 

    • showAsDropDown(View anchor, int xoff, int yoff) 以anchor的左下角为参照点,定义偏移
    • showAsDropDown(android.view.View) 以anchor的左下角为参照点,不偏移
    • showAtLocation(View parent, int gravity, int x, int y) 以parent为主容器,gravity为对齐参照点,定义偏移

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics