I want to display the result of a search in a listView and separate the result with titles.
My Solution is that I use 2 listView with headerView for each one and display them
but this is what I get:
I thought I can put them into a scrollView but I'v searched for a solution and it seems that I can't.
So what should I do to make a scrollbar for all the activity ?
答案 0 :(得分:0)
有一个ListView
而没有ScrollView
。让ListAdapter
ListView
处理整个结果集,包括标题。有各种各样的库来帮助解决这个问题,例如my CWAC-Merge library with its MergeAdapter
。