Search code examples
androidtabbar

android - normal activity with in a tab activity


in my app i have two activities one is of tab activity with 5 tabs and other is of a normal activity.

At first when the app is launched i am showing the normal activity A, which is not related to tab activity, but here is need to show the 5 tab buttons in the bottom with all in un-selected mode.

how to show a normal activity with a list of tab button used in the app

is this a possible one ?


Solution

  • You can't do what you want to do with out of the box components. So let me suggest some alternatives.

    1. You could do like Google. What Google does in Maps and Navigation is that they use the actionbar with overflow buttons. If you look at the two apps you'll see that these buttons works a little like tabs. When the user then clicks these they could be navigated to the other activity with the real tabs in them or you could use the overflow buttons as the actual tab bar.
    2. Use Osmdroid as it have maps and it can be used without having to implement it as a MapActivity.
    3. As a last solution you could make your own tabs...