1

I'm currently porting iOS App to Android

the iOS app uses tabbar + navigation controller (inside each tab) to load multiples Views

I would like to keep the same design on Android, but I'm a bit confused with it

I tried "startActivityForResult" to load another activity the TabHost is removed

I also tried to replace the view with setContentView, I'm working, but as some tabs requires more than 10 sub screen, the code will be very elegant.

So I'm looking for a solution to load another Activity in the same tab with a UINavigationController like features

Ex: If I have three tabs A, B, C, on tab A I can go to A1 while pressing some button, If I push back button, I would like A to be displayed

Cœur
  • 37,241
  • 25
  • 195
  • 267
Nico AD
  • 1,657
  • 4
  • 31
  • 51

1 Answers1

1

You can go either with Fragment or with ActivityGroup.

Fragment is the latest solution where as ActivityGroup is deprecated.

You can refer:

Community
  • 1
  • 1
Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
  • Looks like fragments are not supported on older android (I have to target 2.3) , and for ActivityGroup , I dont understand the difference btwn this complicated stuff and simply use setContentView(another_view_id) – Nico AD Jun 26 '12 at 12:50
  • 1
    with the help of android-support-v4 library you can access fragment in lower version of android. – rajpara Jun 26 '12 at 13:36