I'm just working on an app that is storing multiple strings of data per person, in a string array. I will likely either put the String[] as a variable in a Person class or use HashMaps to store them per person (haven't decided yet but it shouldn't make a big difference for the question). For example for two people, it may look something like:
"John": ["20", "40", "1", "400"]
"Michael": ["11", "3", "09", "98"]
I want the user to be able to edit one of the data of a person graphically. For example, the user will look at a list of people and choose he/she wants to edit the second element in person Michael's array from "3" to "100".
Should I try to use an onClickListener in a ListView to detect which person's name was selected and then dynamically create EditText boxes for each of the elements in the person's array so that the user can click one of the EditText boxes and edit it?
Or is there an easier, more clutter-less way of doing this? I suppose there is no right answer for this but if someone could suggest an efficient and simpler direction to proceed in from their experience, it would help me a lot.
Thank you in advance.