On Tue, Jun 28, 2011 at 3:03 PM, Yip <[email protected]> wrote: > I'm developing a tablet app on 3.1. Is it possible to implement a > design in such a way that each ActionBar Tab has different Fragments?
Sure. Just have the TabListeners set up the appropriate fragments via FragmentTransactions. > For example, I have 4 ActionBar tabs. My first tab has 3 fragments, > the second one has 2 fragments and the remaining tabs have 1 fragment > each. Ah. This may be more challenging. You will need to set up a layout that has three FrameLayout "slots" for the fragments, making some of those FrameLayouts have visibility of GONE or something, depending on the selected tab. Again, the TabListener would be responsible for setting this up. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

