From the course: Android Development Essential Training: 2 User Interface Design

Unlock the full course today

Join today to access over 22,600 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: 2 User Interface Design

Start my 1-month free trial

Manage data entry with EditText

- [Instructor] One way to accept user input is with the EditText view. We're going to create a simple user login form. This form will consist of two EditText views and a button. We're here inside of the design view in Android Studio. We're going to add our components and then position them inside of our parent constraint layout. First, we want our first EditText to accept an email address, and the second one will accept a numeric password, let's add those one by one. We'll start by using the palette, choosing the text category and we're going to first select email, drag that over to our constraint layout, and then we'll select password numeric and drag that over right underneath. And finally, since we want the user to be able to submit the form, we'll need a button and we can grab that from the buttons category. Now to keep things simple, we're going to constrain these views, just lined up one after the other.…

Contents