Which code reads the text typed in an EditText named etName (Kotlin)?
- etName.input()
- etName.hint
- etName.text.toString()
- etName.getValue()
Answer
C) etName.text.toString()
text returns an Editable; toString() converts it to a String.
Computer Science MCQ · More Lab: Registration Form UI MCQs · Practise