一、線性布局、網(wǎng)格布局、橫向交錯網(wǎng)格布局、縱向交錯網(wǎng)格布局
- 線性布局
layout = new LinearLayoutManager(this)
- 網(wǎng)格布局
layout = new GridLayoutManager(this,4)
- 交錯網(wǎng)絡布局(縱向幾排)
layout = new StaggeredGridLayoutManager(4,StaggeredGridLayoutManager.VERTICAL));
- 交錯網(wǎng)絡布局(橫向幾列)
layout = new StaggeredGridLayoutManager(4,StaggeredGridLayoutManager.HORIZONTAL));
- 自帶上下拉刷新
- 自帶添加頭部尾部View
-
采用提供的多種刷新樣式或自定義刷新樣式