I hope this is the right place to post this. So I have been working on a basic app to get my feet wet and I had a few questions.
I find myself doing the entire program inside the onCreate function. The bigger the app gets the more my bad practice flags are going off. The problem I am having however is accessing data outside the app. For example I want to set 5 labels visible and invisible but if I do this in a separate function I will have to recreate the TextView objects. I tried to make them data members of the function but since they have to be final to be accessed from button listeners I couldnt assign them right and it gave me problems. I just feel like I could be doing it better.
I understand the string references but it seems like it would slow things down for what I am trying to do. I want to display data such as:
Name: someName
Age: someAge
So for example the Name: and Age: labels could be string resources but it feels like referencing them would be slower than just doing android:text="Name:" in main.xml. Am I wrong and or missing something here and if I am write where do we want to use string resources?
Thanks



