Re: [android-developers] Re: How to add header in ListFragment?

2011-07-29 Thread Dianne Hackborn
You don't need to be a fragment to participate in the action bar tabs, they just let you do that as a convenience. They are just calling back to you when the tabs are changed. They make it easy to at that point switch fragments, but you can just as well switch views. I'd prefer to not start

[android-developers] Re: How to add header in ListFragment?

2011-07-28 Thread nadam
You can supply your own XML including a ListView. From the documentation of ListFragment: ListFragment has a default layout that consists of a single list view. However, if you desire, you can customize the fragment layout by returning your own view hierarchy from onCreateView(LayoutInflater,

Re: [android-developers] Re: How to add header in ListFragment?

2011-07-28 Thread Mark Murphy
On Thu, Jul 28, 2011 at 12:26 PM, nadam a...@anyro.se wrote: Another option is to skip the ListFragment and use a ListView directly instead. You only need to use ListFragment if the same list (and related logic) should be displayed in two different activities. Or if the list needs to be a