you can have as many fragments as you want associated with an activity. They don't have to have a UI either.
Just be careful how you add/remove/replace them or your back key navigation could get messed up pretty quick. I assume that you don't want the two master/detail fragment sets to be displayed at the same time: instead of swapping between them using a menu option why not consider a Tabbed interface: http://developer.android.com/design/building-blocks/tabs.html? On Friday, November 16, 2012 11:39:29 PM UTC-5, Ram wrote: > > > I want to create an activity which has dropdown in action bar.The dropdown > options are "Show List1" and "Show List2". The onChange event of this > dropdown should change the content area of the Activity. So I plan to use > fragments. > > 1) Is it possible to add two master-details fragments in a Single > Activity(list1 master-detail fragments and list2 master-detail fragments)? > > 2) Is it good practice to create a multiple fragments in a single > activity? > > Note: I want to develop a single .apk for both mobile and tablets from > version 2.2 to 4.2. > > > -- > BY > > R.RAMPRASAD > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en