Android 源码
书虫676
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Android View中getTop,getY,getTranslationY之间的关系
首先View源码中没有Y这个成员变量。 View源码中的成员变量只有 mTop和mTransformationInfo(和translationY有关)。 Y只是作为一个抽象概念存在,它的计算关系如以下代码所示。 /** * The visual y position of this view, in pixels. This is equivalent to the ...原创 2020-02-24 15:44:36 · 1539 阅读 · 0 评论 -
ViewGroup的测量模式
ViewGroup的测量模式 /** * Does the hard part of measureChildren: figuring out the MeasureSpec to * pass to a particular child. This method figures out the right MeasureSpec * for one ...原创 2020-03-06 12:48:07 · 339 阅读 · 0 评论
分享