My application has 2 tab. When I click tab 1 it will show the interface like google reader, like below
[ tab1 ][ tab2 ]
title 1
listview1 item
listview1 item
........
title 2
listview2 item
listview2 item
........
Each tab i use one activity. Please show me how to have interface like that. I just begin with android for 4 days :(. Thanks you!
ps: i can add 1 listview without title in tab1 but don’t know how to add 2 listviews with 2 titles like that.
You don’t have to add two listview with two titles, Just add one listview with multiple sections header.
Just look at this Android – Sectioned Headers in ListViews example, Its nicely describe how to implement Sectioned Headers in ListViews.
And
android-amazing-listview
Jeff Sharkey’s SeparatedListAdapter
MergeAdapter by CommonsWare
Thanks.