PopupWindow 的showatlocation参数解释

showAtLocation(parent, gravity, x, y)


第一个参数指定PopupWindow的锚点view,即依附在哪个view上。
第二个参数指定起始点
第三个参数设置以起始点的右下角为原点,向左、上各偏移20像素。

可以参考 :http://blog.sina.com.cn/s/blog_6a61ea1c0101c57s.html

posted @ 2016-07-08 10:40  zhongyinghe  阅读(2558)  评论(0编辑  收藏  举报