Answers for "how to display text to an android view"

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 "how to display text to an android view"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language