[android-developers] Re: Multi-Page Form with Fragments and Tabs
So I ended up implementing this by putting the switching logic in onBackPressed(); E On Thursday, February 14, 2013 6:28:54 AM UTC-5, Evan Ruff wrote: Hey guys, I was hoping someone could give me a little insight as to how I can make my multi-page form work a little better. Currently, each page (two pages) on my form is a separate fragment. I use the ActionBar Tabs to display the pages and then a Next button in each page that switches the tabs to the next page. All validation is done on the Save button on the last page. Everything is working well, but I'm having a little issue with the back functionality. I'd like to be able to create/pop back stack activities when the user switched. As it is now, he just gets tossed completely out of the wizard, not returned to the previous page (tab). How should I handle that? Any input would be appreciated! Oh, I'm targeting API 14. Thanks! Evan -- -- 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 --- 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. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: multi page form
Thank you all, for help. I used view flipper and it worked as expected. Thanks Again. But still not clear with how to submit that form information and store it in XML file. Pls share. Thanks. On Sep 8, 2:12 am, rich friedel rich.frie...@gmail.com wrote: Like Mark Murphy said... use ViewFlipper to create the illusion of 'pages'http://developer.android.com/reference/android/widget/ViewFlipper.htmlthen store your data however you choose to do so...http://developer.android.com/guide/topics/data/data-storage.html -- 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] Re: multi page form
If you want to use intents to have your pages then: 1) You can use intent.putextra to transfer the data from the fields and store it in the next activity. 2) Save the content of each page in SharedPreferences or a database. If you use the second method then the data will already be in the database. If you use the first one the at the end you will need to save all the data you have been passing around through Intents. There may be more ways with intents of which I can not think right now. Thanks On Wed, Sep 7, 2011 at 10:33 AM, ksmobilejava ksmobilej...@gmail.comwrote: Thanks all for help. The intended from has multiple fields (around 25-30 fields) so it can not be fitted in single screen. As all agrees , user doesn't like to scroll , I want to divide fields into multiple pages (~5 fields per page) and navigate through them from user friendly perspective. I read about Intents , but Intents make call to other activity from currently running activity. Conceptually form filling is single activity only it need to be divided into pages, so here , is it appropriate to use intents ? Further , the information entered in all pages need to be stored (as a record , may be in xml file) at the end of form filling. what is proper way to approach this requirement, Pls share. Thanks in advance. On Sep 6, 9:24 pm, Logesh rajendren loges...@gmail.com wrote: my advice is to shrink your UI so that it fits into a single page. because Users dont like to use scrolls. Design your form in such a way if its feasible . On Tue, Sep 6, 2011 at 6:03 AM, ksmobilejava ksmobilej...@gmail.com wrote: Hello , I am new to android paltform. How to navigate through multi page form application? how to handle next and back button click event? My point of confusion is that, form filling is single activity , then how to display multiple pages of the form and how to navigate back and forth from pages in that activity? -- 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 -- 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 -- -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- 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] Re: multi page form
Thanks all for help. The intended from has multiple fields (around 25-30 fields) so it can not be fitted in single screen. As all agrees , user doesn't like to scroll , I want to divide fields into multiple pages (~5 fields per page) and navigate through them from user friendly perspective. I read about Intents , but Intents make call to other activity from currently running activity. Conceptually form filling is single activity only it need to be divided into pages, so here , is it appropriate to use intents ? Further , the information entered in all pages need to be stored (as a record , may be in xml file) at the end of form filling. what is proper way to approach this requirement, Pls share. Thanks in advance. On Sep 6, 9:24 pm, Logesh rajendren loges...@gmail.com wrote: my advice is to shrink your UI so that it fits into a single page. because Users dont like to use scrolls. Design your form in such a way if its feasible . On Tue, Sep 6, 2011 at 6:03 AM, ksmobilejava ksmobilej...@gmail.com wrote: Hello , I am new to android paltform. How to navigate through multi page form application? how to handle next and back button click event? My point of confusion is that, form filling is single activity , then how to display multiple pages of the form and how to navigate back and forth from pages in that activity? -- 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 -- 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