Android : Fragment launches page, then that page should take the user back to the fragment. Form file type?

on Monday, November 10, 2014


I currently have an Fragment activity with 2 tabs, one of which has an action bar button to launch a page with a form (full of editTexts, etc...), which when filled and saved (or back is pressed), the user will be taken back to the fragment that launched it.


I've been trying to play around with different approaches but no luck, so I wanted to know if there was a good way or a best way to go about this. I wrote down a few ideas I thought of and researched, but I am making no progress and would appreciate some help. Here are the approaches:




  1. Make the form a fragment as part of a separate FragmentActivity.




  2. Replace the current fragment (including the tabs) within the same fragment activity (not sure if I want the tabs hidden for the form).




  3. Make the form an activity, and have the fragment call it, then somehow send the user back to the fragment after pressing save or back.




  4. Or any better suggestions/ideas?




Thank you!


0 comments:

Post a Comment