On Tue, Jun 21, 2011 at 8:19 PM, nadam <[email protected]> wrote: > In most Fragment exemples there are two fragments, for instance a list > to the left and a content area to the right where you see things you > have selected in the list. Do you really need two fragments for this > or could the left part be a simple ListView instead?
You are welcome to write whatever you want. However, if you want to take advantage of defining the ListView once and using it across multiple activities (e.g., one with the content fragment for tablets/TVs and one without the content fragment for phones), using a ListFragment is a good idea. > I'm also confused about the example at > http://android-developers.blogspot.com/2011/02/android-30-fragments-api.html > where there seems to be two fragments, but the second one (called > details) is declared as a FrameLayout in the xml. The fragment is added dynamically via a FragmentTransaction. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- 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

