Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Android equivalent of getElementById

fun changeText(view: View)
    {
        val textView =  findViewById<TextView>(R.id.text_view_id) as TextView;
        textView.setText("hello world!");
    }
 
PREVIOUS NEXT
Tagged: #Android #equivalent #getElementById
ADD COMMENT
Topic
Name
4+6 =