// globally
TextView myAwesomeTextView = (TextView)findViewById(R.id.myAwesomeTextView);
//in your OnCreate() method
myAwesomeTextView.setText("My Awesome Text");
// Load and use views afterwards
val tv1: TextView = findViewById(R.id.textView1)
tv1.text = "Hello"
//java,set textview text android studio,2021/09.23
TextView textView;
textView = findViewById(R.id.textView); //in your OnCreate() method
textView.setText("Hello World");
String a = tv.getText().toString();
int A = Integer.parseInt(a);
TextView textView = new TextView(this);