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

Solution: Get to know you - Android Tutorial

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

Start my 1-month free trial

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…

Contents