sri404 / mobyfactory-uiwidgets-android

Automatically exported from code.google.com/p/mobyfactory-uiwidgets-android
0 stars 0 forks source link

How to show activity with tabs, with out adding it in the tab bar #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Can anyone suggest me a way of displaying an activity with the tab bar, but 
without adding the activity to the tab bar?

Original issue reported on code.google.com by Vent...@gmail.com on 27 Oct 2010 at 11:59

GoogleCodeExporter commented 9 years ago
Can you be more specific.
a simple startActivity(intent) will take you to a new activity without tabs !

Original comment by achraf.t...@gmail.com on 11 Nov 2010 at 9:08

GoogleCodeExporter commented 9 years ago
Exactly the opposite!

I would like to have activities displaying the tab bar, but with out adding 
those activities to the tab bar.

Original comment by Vent...@gmail.com on 12 Nov 2010 at 3:12

GoogleCodeExporter commented 9 years ago
Let's say you have an activity A which is shown in a tab (you added it to the 
tab)
On the activity A there is button that takes you to an activity B (That has 
nothing to do with the tab), but you want still to show the tabs for the 
activity B.
The solution is to let the MainTabs activity replace activity A by the actvity 
B, a way to do it is that A broadcasts an intent to MainTabs which will then 
start B in the same tab where A is displayed.

Original comment by achraf.t...@gmail.com on 21 Nov 2010 at 1:07