Answers for "how to set a text in a text view from another class in android studio"

7

android studio set text of textview

// globally 
TextView myAwesomeTextView = (TextView)findViewById(R.id.myAwesomeTextView);

//in your OnCreate() method
myAwesomeTextView.setText("My Awesome Text");
Posted by: Guest on June-18-2020

Code answers related to "how to set a text in a text view from another class in android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language