Answers for "how to change the text of textview in android using kotlin"

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 change the text of textview in android using kotlin"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language