Search code examples
androidandroid-fragmentsactionbarsherlockandroid-viewpager

Multiple fragments/layout in one Tab of actionbarsherlock


This is related to my last post, but i need a solution quickly so i'm trying to simplify the problem.

All i want to do i having several fragments (one list at the left and a detail view at the right) in one tab.

Do you have an idea ?


Solution

  • If you know what the two Fragments are in advance just declar them both within the XML layout file for that tab. You can see how to do this in the fragment tutorial from the android docs. This will display two fragments in one activity using an outer layout element as a container.