主要讲解了在Activity的启动过程中获取组件宽高的五种方式,由于activity的启动流程与view的加载绘制流程是相互独立的两个过程,所以在activity的生命周期方法onCreate、onResume方法中直接获取组件的宽高是有问题的,这个项目就是为解决这个问题提供的五个解决方法,具体可参考我们的blog:github项目解析(八)-->Activity启动过程中获取组件宽高的N种方式
-
Notifications
You must be signed in to change notification settings - Fork 4
yipianfengye/android-viewheight
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Activity启动过程中获取组件宽高的五种方式
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published