+ 4
How can i edit the text of textview from .java?
2 Answers
+ 6
To be more clear,
XML
<TextView
....
android:id="@+id/textView"
....
/>
JAVA
TextView tV = (TextView) findViewById(R.id.textView);
tV.setText("YOUR_TEXT_HERE");
0
TextView text1 = (TextView) findViewById(R.id.text1);
text1.setText("Hello");