Answers for "how to set text in textview in android with java"

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
0

how to set text in textview in android kotlin

// Load and use views afterwards
val tv1: TextView = findViewById(R.id.textView1)
tv1.text = "Hello"
Posted by: Guest on June-05-2021

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

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language