1// globally
2TextView myAwesomeTextView = (TextView)findViewById(R.id.myAwesomeTextView);
3
4//in your OnCreate() method
5myAwesomeTextView.setText("My Awesome Text");
1//java,set textview text android studio,2021/09.23
2TextView textView;
3
4textView = findViewById(R.id.textView); //in your OnCreate() method
5textView.setText("Hello World");
1// Load and use views afterwards
2val tv1: TextView = findViewById(R.id.textView1)
3tv1.text = "Hello"