AbstractListView源码分析2
生活随笔
收集整理的這篇文章主要介紹了
AbstractListView源码分析2
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
? ? ?/**
? ? ?* Regular layout - usually an unsolicited layout from the view system,一般的布局
? ? ?*/
? ? static final int LAYOUT_NORMAL = 0;
? ? /**
? ? ?* Show the first item,展示第一項
? ? ?*/
? ? static final int LAYOUT_FORCE_TOP = 1;
? ? /**
? ? ?* Force the selected item to be on somewhere on the screen,強制選擇的條目顯示在屏幕的某個位置上
? ? ?*/
? ? static final int LAYOUT_SET_SELECTION = 2;
? ? /**
? ? ?* Show the last item,展示最后的條目
? ? ?*/
? ? static final int LAYOUT_FORCE_BOTTOM = 3;
? ? /**
? ? ?* Make a mSelectedItem appear in a specific location and build the rest of
? ? ?* the views from there. The top is specified by mSpecificTop.讓選擇的條目顯示在指定的位置和建立從這個視圖到那的。
? ? ?*/
? ? static final int LAYOUT_SPECIFIC = 4;
? ? /**
? ? ?* Layout to sync as a result of a data change. Restore mSyncPosition to have its top
? ? ?* at mSpecificTop ? 布局和數據改變同步
? ? ?*/
? ? ?* Regular layout - usually an unsolicited layout from the view system,一般的布局
? ? ?*/
? ? static final int LAYOUT_NORMAL = 0;
? ? /**
? ? ?* Show the first item,展示第一項
? ? ?*/
? ? static final int LAYOUT_FORCE_TOP = 1;
? ? /**
? ? ?* Force the selected item to be on somewhere on the screen,強制選擇的條目顯示在屏幕的某個位置上
? ? ?*/
? ? static final int LAYOUT_SET_SELECTION = 2;
? ? /**
? ? ?* Show the last item,展示最后的條目
? ? ?*/
? ? static final int LAYOUT_FORCE_BOTTOM = 3;
? ? /**
? ? ?* Make a mSelectedItem appear in a specific location and build the rest of
? ? ?* the views from there. The top is specified by mSpecificTop.讓選擇的條目顯示在指定的位置和建立從這個視圖到那的。
? ? ?*/
? ? static final int LAYOUT_SPECIFIC = 4;
? ? /**
? ? ?* Layout to sync as a result of a data change. Restore mSyncPosition to have its top
? ? ?* at mSpecificTop ? 布局和數據改變同步
? ? ?*/
? ? static final int LAYOUT_SYNC = 5;
? /**
? ? ?* Layout as a result of using the navigation keys,布局使用導航keys的作為結果
? ? ?*/
? ? static final int LAYOUT_MOVE_SELECTION = 6;
總結
以上是生活随笔為你收集整理的AbstractListView源码分析2的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 源码之ListView分析
- 下一篇: AbstractListView源码分析