I have a question about the implementation of a ListView layout within a tab layout.
When we are implementing this where we have a Custom title bar underneath which is a Tab Layout and within each Tab layout is a List View , should the main activity be a extension of ListView or should it be a extension of Tab View ? Can it be List View ?
The reason is that I’ve created a ListView properly functioning and I want to expand on it by using the list as a template and adding Tabs (categories) which branches into more of such lists. I’ve done it using ListView and seems like addition of tabs would require that i rewrite my whole code by extending tabview. Is there any way i can make use of ListView while implementing my tabs ?
I have noticed that there is no tutorial on how to implement these 2 views/layouts together, anyone has any links and directions ?
I’ve got an example of this in some code I wrote a while ago.
What I needed was also a list inside of a tab. So the driver for this is the tab that has other activities inside it. You add TabSpec’s that have the Intent of the ListActivity to the TabHost.
This is the layout for the tab:
Then this is the layout for one of the list views in the tab:
And this is the code for the tab itself:
public class