Hi all, I was looking for some guidance for an app I am building. I am confused as to whether I should be creating fragments, creating custom components shown in tabs or creating basic layouts with tabs and handling all interaction in a fragment or activity.
My use case is: - Multi-form data entry. - I have an inspection which records general information and can have many sub-inspections - Each sub-inspection has a number of schedules - Each schedule has a number of questions I have currently built this as: MainActivity - inflates an InspectionFormFragment, handle an ActionBar etc InspectionFormFragment - creates the GeneralDetailsForm in a Tab and a Tab per SubInspectionForm and GeneralDetailsForm extends LinearLayout - and adds a number of TextView, Listview, Button components attaches Adapters etc SubInspectionForm extends RelativeLayout - has two parts: 1. a TableLayout holding a bunch of components for the questions; and 2. a ListView which holds all the schedules for the sub-inspection based on the selected list item the questions in the TableLayout should update. Hope that makes sense. So my custom layouts GeneralDetailsForm, SubInspectionForm actually build a layout and have onClick handlers etc but I'm not sure if that is the correct place for this interaction handling. To learn how to build good UI's I have heavily been taking a steer from the Honeycomb Gallery app and the Google I/O 2011 app. I worried I have been blinkered by their use of Fragment and I am missing a simpler solution. Would really appreciate guidance from a more experience Android developer. Thanks Joe (I appreciate this is a "it-depends" kind of question but hopefully the discussion will shake loose the correct route for me to go down) -- 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