Skip to content Skip to sidebar Skip to footer

Is There A Way To Display Fragments In Tabhost?

I'd like to show a different fragment in a TabHost, for every tab. But it seems that there's no easy way to do this. TabHost can only accept A. Views or B. Intents that launch Ac

Solution 1:

Some hits here:

  1. fragment Support with Tabhost
  2. Android 1.6 & Fragment & Tabhost

For what I understood, "link" a fragment inside a TabHost isn't allowed, you need to create activities that include your fragments and then call these activities from TabHost.

EDIT the "official solution" from Google, and with nice animations.

Post a Comment for "Is There A Way To Display Fragments In Tabhost?"