Answers for "set text to textview in java android"

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
2

get text from textview android

String a = tv.getText().toString();
     int A = Integer.parseInt(a);
Posted by: Guest on May-20-2021

Code answers related to "set text to textview in java android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language