im doing a reminders application for android that has an activity which is populated with inputs that depend on the category of the reminder. The amount of inputs (EditText) changes depending on the category, so im a little confused on how to tackle this case.
I propose 3 solutions here, but im not sure if there is a 4th solution or a better way to do it. Im open to criticism. This are my choices: - I can make fragments for each category - Or i can make a common xml layout file that contains a number of inputs that reflect the category with most inputs, and find them programatically and assign them their properties - Or i can make the inputs programatically.
Im trying to find the most elegant solution here. Thank you for your help.
Aucun commentaire:
Enregistrer un commentaire