2 ScrollView中的ListView

时间:2014-04-05 11:03:30

标签: android listview scrollbar

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:

click here to see the picture

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 ?

1 个答案:

答案 0 :(得分:0)

有一个ListView而没有ScrollView。让ListAdapter ListView处理整个结果集,包括标题。有各种各样的库来帮助解决这个问题,例如my CWAC-Merge library with its MergeAdapter