AbstractListView源码分析7

 /**
     * One of TOUCH_MODE_REST, TOUCH_MODE_DOWN, TOUCH_MODE_TAP, TOUCH_MODE_SCROLL, or
     * TOUCH_MODE_DONE_WAITING
     */
    int mTouchMode = TOUCH_MODE_REST;


    /**
     * Y value from on the previous motion event (if any)
     */
    int mLastY; 记录上一次motion事件的y值


    /**
     * How far the finger moved before we started scrolling
     */

    int mMotionCorrection; 移动的距离


/**
     * Determines speed during touch scrolling
     */
    private VelocityTracker mVelocityTracker;  在触摸滑动期间的速度定义


/**
     * Handles one frame of a fling
     */
    private FlingRunnable mFlingRunnable; 处理滑动帧


 /**
     * Handles scrolling between positions within the list.
     */
    AbsPositionScroller mPositionScroller; 处理在列表位置见的滑动


/**
     * Indicates whether the list is stacked from the bottom edge or
     * the top edge.
     */
    boolean mStackFromBottom;表明列表是否是被stacked从底部边界或头部边界,listview的填充方向

/**
     * When set to true, the list automatically discards the children's
     * bitmap cache after scrolling.
     */
    boolean mScrollingCacheEnabled;如果设置为true,列表自动抛弃孩子的bitmap cache在滑动后。

/**
     * Whether or not to enable the fast scroll feature on this list
     */
    boolean mFastScrollEnabled; 是否快速滑动是有效的,当有100条数据时,如果想要滑动到80条可以启动快速滑动

/**
     * Whether or not to always show the fast scroll feature on this list
     */
    boolean mFastScrollAlwaysVisible; 是否总是展示快速滑动的特性在这个list上

 /**
     * Optional callback to notify client when scroll position has changed
     */
    private OnScrollListener mOnScrollListener; 可选的回调接口,当滑动位置改变时

/**
     * Keeps track of our accessory window
     */
    PopupWindow mPopup; 记录我们附加的窗口

/**
     * Used with type filter window
     */
    EditText mTextFilter;被使用带有filter窗口的类型


/**
     * Indicates whether to use pixels-based or position-based scrollbar
     * properties.
     */
    private boolean mSmoothScrollbarEnabled = true;表明是否使用基于像素或基于位置的scrollbar

 /**
     * Indicates that this view supports filtering
     */
    private boolean mTextFilterEnabled;表明这个view是否支持文本过滤

/**
     * Rectangle used for hit testing children
     */
    private Rect mTouchFrame; 获取点击矩阵

/**
     * The position to resurrect the selected position to.
     */
    int mResurrectToPosition = INVALID_POSITION;重新使用选择的位置





  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值