AbstractListView源码分析6

本文探讨了视图滑动机制中的关键组件,包括用于指示滚动方向的上下指示器、子类通过OnMeasure方法获取的测量规范以及视图滑动时启用的绘制缓存标志。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

/**
     * 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;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值