通用的列表,常用于 App 的设置界面,其父类不是 ListView 而是 LinearLayout,所以一般要配合 ScrollView 使用。提供了 Section 的概念,用来将列表分块。配合 QMUIGroupListView.Section, QMUICommonListItemView 和 QMUIGroupListSectionHeaderFooterView 使用。
下面是QMUIListView 中的一些常用方法,以供使用:
(注:从QMUIGroupListView Github 转载,只是把所有方法集合,方便学习和使用 官网链接)
//开始使用
QMUIGroupListView groupListView = new QMUIGroupListView(context);
//QMUIGroupListView的方法:
//一般使用的构造函数
public QMUIGroupListView(Context context);
//创建一个 section
public static Section newSection(Context context) ;
/**
* 设置分割线风格,具体风格可以在 {@link SeparatorStyle} 中选择。
* @param separatorStyle {SEPARATOR_STYLE_NORMAL} 或 {SEPARATOR_STYLE_NONE} 其中一个值。
*/
public