There are many similar questions to this one, but they all ask about setting the text in a TextView from another CLASS. I want to know if there is a short and simple way to change the text from another METHOD within the same class.
So everything is in one class, but the TextView is setup in method 1, and i want to set the text for this text view in method 2.
Before posting duplicate question replies and down-voting me, please read the question. I want to change the text from WITHIN the same class, just on different methods.
More info...
//Method 1 has:
final TextView tvTitle = (TextView) findViewById(R.id.tvTitle);
//Method 2 has...
tvTitle.setText("TITLE");
yourTextView.setText("New text");in yourmethod 2yourTextViewas an attribute of your class ?