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 - Android Tutorial
From the course: Android Development Essential Training: 2 User Interface Design
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Manage string values as resources4m 18s
-
(Locked)
Manage data entry with EditText8m 31s
-
(Locked)
Manage data entry with TextInputLayout5m 51s
-
(Locked)
Use string resources with placeholders4m 2s
-
(Locked)
Display Snackbar messages3m 16s
-
(Locked)
Challenge: Get to know you1m
-
(Locked)
Solution: Get to know you2m 39s
-
(Locked)
-
-
-