shoulderbacon
Lurker
I am building an application, and have always been awful at GUI development. but I've got a main activity and can swap between 2 fragments that each display something to the user.
Essentially I am making a specific calendar application. When the user adds an appointment, they have a spinner with 5 different appointment types.
for each type, I want to present them with a different set of options. In some cases a couple textboxes, in others a slider and some other spinners. essentially each appointment type has it's own set of views.
So far I have tried doing this with each set of views as an individual fragment, but that did not go successfully. I am retrying with using a viewswitcher, but that does not seem ideal, because I have to switch views in a certain order. a 3rd solution would be to dynamically create the gui in code rather than the XML, but this seems like a bad way to do it.
What is the optimal tool to use to swap out gui elements?
Essentially I am making a specific calendar application. When the user adds an appointment, they have a spinner with 5 different appointment types.
for each type, I want to present them with a different set of options. In some cases a couple textboxes, in others a slider and some other spinners. essentially each appointment type has it's own set of views.
So far I have tried doing this with each set of views as an individual fragment, but that did not go successfully. I am retrying with using a viewswitcher, but that does not seem ideal, because I have to switch views in a certain order. a 3rd solution would be to dynamically create the gui in code rather than the XML, but this seems like a bad way to do it.
What is the optimal tool to use to swap out gui elements?