Answers for "edit text box in android studio"

2

android studio textbox change text

XML:
<TextView
        android:id="@+id/helloTxt"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
        
Java:
TextView msg = findViewById(R.id.helloTxt);
msg.setText("Hello");
Posted by: Guest on August-10-2020
0

set text in edittext android

EditText editText = (EditText)findViewById(R.id.edit_text);
editText.setText("This sets the text.", TextView.BufferType.EDITABLE);
Posted by: Guest on March-25-2021

Code answers related to "edit text box in android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language