[android-developers] Android Fragments
Hello I want to create Android application. I need to show toolbar and navigation drawer and menu icon on entire application. my concerns are below: Can I use Fragments to create all view and as and when needed I can replace the fragments with another fragment But am i able to get the all event of the fragment Example If on click of item i want to open another fragment, etc. Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/06241765-6e12-4b19-879e-2fc1fe487e55%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Android Fragments doubt.
Hello guys. I am developing a application and in a activity a I want it to be similar to ICS settings application, i.e. in the left side I have a ListFragment with 4 categories and in the right a Fragment with content of each category, and each category has a different layout, and I ran into a doubt: should a develop 4 different fragments for the categories and replace them according to the selected category or there is a way to just use one Fragment for the content and use different layouts according to selected category. I would appreciated if someone answer. Anyway thanks in advance. -- 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
Re: [android-developers] Android Fragments doubt.
On Sat, Sep 8, 2012 at 8:15 PM, pharaoh edelcides.goncal...@gmail.com wrote: I am developing a application and in a activity a I want it to be similar to ICS settings application, i.e. in the left side I have a ListFragment with 4 categories and in the right a Fragment with content of each category, and each category has a different layout, and I ran into a doubt: should a develop 4 different fragments for the categories and replace them according to the selected category or there is a way to just use one Fragment for the content and use different layouts according to selected category. If they are going to have different layouts, I would recommend having different fragments, one per layout. If, on the other hand, they will all have the same layout, but the *content* is different -- you need to populate widgets, not replace them -- then having a single fragment should be fine. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 Available! -- 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
[android-developers] Android Fragments
Hi, I have a main.xml layout in which I am adding one fragment.when the activity is started I am displaying a listview in fragment.When the user clicks on the itme in the list view, I am replacing the current listview with another listview, with the same fragment. Now if I turn my device, I should be seeing the second listView but I am shown the FirstListview. How will I solve this problem??there has to be some way where I can save the current reference t the fragment associated with activity and restore the same. Please help. -- 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