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 in line - Android Tutorial
From the course: Android Development Essential Training: 2 User Interface Design
Solution: Get in line
(upbeat music) - [Instructor] Welcome back. How'd it go? Were you able to recreate our challenge screen? Hopefully you had the chance to play with constraints and chains during the process. Let's take a look at the solution I came up with. Here in Android Studio, I started with the empty app template as my basis. That's because we only needed to have one screen. This app template comes with one layout file, activity_main. And that file already contains a textView component inside of a ConstraintLayout. Next, I came to design mode in order to add the missing views. From the pallet, I added three buttons to my layout. Now before we discussed how I positioned those, let's talk about the textView first. The first thing we needed to do here was update the textView to match what was in the challenge exercise. In the middle. We can do that from the attributes pane, and we'll scroll down to the text property. And we…
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
-
-
-
Position views with LinearLayout4m 44s
-
(Locked)
Manage positions with constraints4m 52s
-
(Locked)
Distribute views with constraint chains4m 37s
-
(Locked)
Display views programmatically5m 20s
-
(Locked)
Get view references with findViewById()2m 34s
-
(Locked)
Get view references with view binding5m 35s
-
(Locked)
Challenge: Get in line50s
-
(Locked)
Solution: Get in line3m 33s
-
-
-
-
-