how to change the text of a textview code example
Example: android studio textbox change text
XML:
<TextView
android:id="@+id/helloTxt"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
Java:
TextView msg = findViewById(R.id.helloTxt);
msg.setText("Hello");