日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

AbstractListView源码分析4

發布時間:2024/4/17 编程问答 18 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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連接時。





總結

以上是生活随笔為你收集整理的AbstractListView源码分析4的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。