![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 1319 阅读 · 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 · 158 阅读 · 0 评论