AbstractListView源码分析4

    /**
     * Running state of which positions are currently checked
     */

    SparseBooleanArray mCheckStates;  存储那些位置被选中了


   /**
     * Running state of which IDs are currently checked.
     * If there is a value for a given key, the checked state for that ID is true
     * and the value holds the last known position in the adapter for that id.
     */
    LongSparseArray<Integer> mCheckedIdStates; 那些ID被选中


  /**
     * Controls how the next layout will happen
     */
    int mLayoutMode = LAYOUT_NORMAL;当前显示模式


  /**
     * Should be used by subclasses to listen to changes in the dataset
    */
    AdapterDataSetObserver mDataSetObserver;由子类使用来监听数据库的改变


  /**
     * The adapter containing the data to be displayed by this view
     */
    ListAdapter mAdapter;   包含被展示在这个view上的数据


   /**
     * The remote adapter containing the data to be displayed by this view to be set
     */
    private RemoteViewsAdapter mRemoteAdapter;  包含数据的远程adapter展示在这个视图上,remoteview中嵌入listview时使用。

    

     /**
     * If mAdapter != null, whenever this is true the adapter has stable IDs.
     */
    boolean mAdapterHasStableIds;  作用如果Adapter的hasStableIDS返回true,这样notifyDataSetChanged的时候,id不变,ListView将不会重新绘制这个view;


     /**
     * This flag indicates the a full notify is required when the RemoteViewsAdapter connects
     */
    private boolean mDeferNotifyDataSetChanged = false;这个flag表明一个完全的通知是需要当RemoteViewsAdapter连接时。





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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值