是否有类似于ListView#AddHeader或ListView#AddFooter的方法,它会在列表中的所需位置后添加视图?
答案 0 :(得分:1)
可以在github上查看这个项目:StickyListHeaders
答案 1 :(得分:0)
您只需将行添加到所需位置的数据集,然后调用notifyDataSetChanged();
答案 2 :(得分:0)
如果我理解正确,您想在视图中添加OTHER控件? ListView之后和之前???
将ListView包装在LinearLayout(orientation = vertical)中并插入您想要的视图...
我希望它可以帮到你!