If you are using fragments, I would recommend putting your tabs in the action bar, using ActionBarSherlock for supporting your pre-Android 3.0 devices.
If you are certain that you want to use fragments with a TabHost, I think there is a sample in the SDK samples that demonstrates its use. On Fri, Feb 17, 2012 at 1:29 AM, Jim Andresakis <[email protected]> wrote: > So now there is the fragment activity what would be the best way to go > about implementing them within a tabhost. > > I ask this because in reading the documentation they say that tabhost > has been depreciated in favor of fragments and I have yet to really > use the fragments > and would like to do so after getting a little more direction than > what I read over in the documentation. > > Ideally I would like to set up something similar to a tabhost to show > three sub activities. One is a listview populated with data from > online, another would be a mapview populated with the same data, and > another with some more content from online. > > How would I go about that? Do I just create my activities making them > extend fragmentActivity and use the tabhost like I used to or is there > another method to go about this > with the fragments that is easier on the OS. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

