获取View屏幕位置

1、不包括状态栏高度

View.getLocationOnScreen(int[])

2、包括状态栏高度

View.getLocationInWindow(int[])
posted @ 2018-10-22 09:24  后天打老虎  阅读(136)  评论(0)    收藏  举报