FragmentTabHost in Android with Bottom Tabs

FragmentTabHost in Android with Bottom Tabs

This is example shows how to use FragmentTabhost in android. 

  1. Withing Fragment

  2. Using in FragmentActivity

  3. Tabs at Bottom. (New)

    Most of the developers are facing this problem, I finally got the solution after i spent a few hours on it.It would be helpful to face this who r trying to make iphone like tabs(Bottom Tabs Feature ).

Advertisements

4 thoughts on “FragmentTabHost in Android with Bottom Tabs

  1. Many thanks for this. I struggled for a while to get the nested fragments working, got it working and then saw your post. When you setup the tab host in Fragment 3 why do you pass R.id.menu_settings? I didn’t have this in mine (it worked) but the content of the tab always appeared over the tabs and thus they were not visible.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s