I want to open many views under the same tab in Android. In other words, i have a tab host containing many tabs. One of these tabs has a list view as content. When a list item is clicked, i want it to open a new view under the same tab. I did a little Google researches and i found that i must use android fragment, but i am not sure of this. Do you think that the use of Fragment is the best solution or do you have any other idea? Thank you in advance.
Share
Fragment and FragmentManager are the recommended path forward since Honeycomb. You’ll want to use the compatibility library (http://developer.android.com/sdk/compatibility-library.html) if you intend to target Gingerbread or earlier devices.
You’ll notice that ActivityGroup has been deprecated. That doesn’t mean you can’t use it now, but at some point you’ll be forced to migrate anyway, so you might as well start now.