/**
* 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;
本文详细介绍了列表视图中的六种布局策略:一般布局、展示首项、强制选择项显示、展示末项、特定位置显示及数据同步布局。每种布局都有其特定的应用场景,如使用导航键时采用布局移动选择等。
806

被折叠的 条评论
为什么被折叠?



