I am making an app in which I need to update multiple textviews at once. For example:
//Just an example int
int number = 0;
public void updateViews(View view){
TextView textview = (TextView) findViewById(R.id.my_textview);
textView.setText("" + number);
}
Then let's sat that the number int changes, I need to update the updateViews method so that I don't have to manually update all of the TextViews at once. When I try to call something like:
updateViews();
it gives me an error. How can I solve this problem?