I currently have an application that is storing around 10 variables per android view in which all of the views need to have their variables changed dynamically. How would be the best way of storing these variables in an efficient way and or would be less code because as of right now I have around 200 variables and each one being called like 4 times to change the variables.
So like this:
String buttonName = "blah";
buttonName = newValue;
Would using an ArrayList save more code and help OOD? Also most of the views have ints, floats, & String variables assigned to them. I need a good way to save code that could possibly work for multiple Views that all need different values. Any Ideas? Any help would be greatly appreciated! Thanks!
I would extend whatever Views you are using and store the additional variables in your extended class…
then in your code you would use it like…