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 TextInputLayout

Manage data entry with TextInputLayout - Android Tutorial

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

Start my 1-month free trial

Manage data entry with TextInputLayout

- [Instructor] EditText is a simple way to collect user input. But when you start to type into the field, the hint disappears. If you need the hint available, you'll want to use a newer component. The TextInputLayout. Let's move over to Android Studio and we'll update our layout file to switch from EditText to TextInputLayout. The first thing we want to do is remove the EditText views. We can select both views, and then delete them. And in their place, we'll add in the TextInputLayouts. We can find those by going to Text and then scrolling down to where we see TextInputLayout. And we'll add them one at a time. The very first time you use TextInputLayout, you may receive a popup letting you know that this particular operation requires the material library component. Since we don't have this added to our project yet, we're going to click on OK. This will update our build.gradle file to include this new…

Contents