/**
* Subclasses must retain their measure spec from onMeasure() into this member
*/
* Subclasses must retain their measure spec from onMeasure() into this member
*/
int mWidthMeasureSpec = 0; 子类通过OnMeasure方法获得measure spec
/**
* The top scroll indicator:向上的指示器
*/
View mScrollUp;
/**
* The down scroll indicator:向下的指示器
*/
View mScrollDown
/**
* When the view is scrolling, this flag is set to true to indicate subclasses that
* the drawing cache was enabled on the children:当视图滑动时,这个标志设置为true表明子类,绘制缓存能够 设置到children。
*/
boolean mCachingStarted;
boolean mCachingActive;
本文探讨了视图滑动机制中的关键组件,包括用于指示滚动方向的上下指示器、子类通过OnMeasure方法获取的测量规范以及视图滑动时启用的绘制缓存标志。
540

被折叠的 条评论
为什么被折叠?



