Is it a good idea to declare static view in android?
问题 The problem : I have one class and one activity: The class do the logic and use a complex algorithms that manipulate Textview and ImageView from the activity What I'm doing : In activity : static TextView txt1, txt2, txt3, txt4; so I can use in the class : Activity.txt1 Is it something bad in Android programming ? I wanted to learn best practise. So if you have a better method I would take it. Thanks 回答1: I can't see any reason you'd ever want to do that. Static variables are shared between