如何获取pinnedsectionlistview 固定标题数据
3 回答

动漫人物
TA贡献1815条经验 获得超10个赞
PinnedSectionListView继承自listview,众所周知listview的每个子view都是按顺序跟着滚动的,要实现联系人listview的效果还真的找不到思路。看了PinnedSectionListView之后,感觉要改造一个现有的控件,一般都是通过重绘子view来实现的。

有只小跳蛙
TA贡献1824条经验 获得超8个赞
protected ListView createListView(Context context, AttributeSet attrs) {
final ListView lv;
if (VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD) {
lv = new InternalListViewSDK9(context, attrs);
} else {
lv = new InternalListView(context, attrs);
}
return lv;
}
- 3 回答
- 0 关注
- 564 浏览
添加回答
举报
0/150
提交
取消