From the course: Android Development Essential Training: The User Interface with Kotlin

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Manage data entry with EditText

Manage data entry with EditText - Android Tutorial

From the course: Android Development Essential Training: The User Interface with Kotlin

Start my 1-month free trial

Manage data entry with EditText

- [Instructor] The Text View component presents read-only text, but when you want to create a data entry form to collect information from the user, you need an Edit Text component. These are available on the palette when you're in Design View in an XML layout file and there are a number of versions that you can use. The Plain Text one looks for simple text, but there's also one that receives a password and masks the data entry with asterisks and others that validate the data entry for various values, so instead of seeing a standard qwerty-style keyboard, you see a numeric keypad. Now these are all actually the same component, the Edit Text component, but with different attributes. To demonstrate this, I'm going to drag in a plain text object and I'm going to anchor it to the top and to the left and then I'm going to drag this out a bit, so it's a specific width. I'll go into Text Mode and see what the result was and I'm going to change this explicit width to 300dp and I'll change the…

Contents