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.
Solution: Get to know you - Android Tutorial
From the course: Android Development Essential Training: 2 User Interface Design
Solution: Get to know you
(upbeat music) - [Annice] Welcome back. Let's jump into my solution to the get to know you challenge. I started with an empty project in Android Studio, and I added in three text input layouts. And I renamed all of them. The first one is named firstNameTextLayout. And then I also gave a name to the inner text edit text, firstNameText. Now this just makes it easier when we try to work with it later inside of our main activity class. Then I do something corresponding for the favorite color and the favorite snack. Now let's move over to our main activity class to see how we wired this all up. Inside of our main activity class, using our activity name binding, I retrieved access to the first name text variable, its text property, and then stored that in a variable as a string. And then I did something similar for the favorite color text and the favorite snack text. Now recall one of the challenge requirements was to…
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)
-
-
-