New Course: Beginning Android Layouts
Learn the basics of creating Android user interfaces, starting with layouts such as LinearLayout, and then switch to using the newer ConstraintLayout. By Joe Howard.
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress, bookmark, personalise your learner profile and more!
Create accountAlready a member of Kodeco? Sign in
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress, bookmark, personalise your learner profile and more!
Create accountAlready a member of Kodeco? Sign in
Contents
New Course: Beginning Android Layouts
5 mins
It’s day 4 of the Android Avalanche: an event where we’ll be releasing new Android and Kotlin books, courses, and screencasts every day!
Today, we are releasing a brand new course: Beginning Android Layouts.
In this 29-video course by Joe Howard, you’ll learn how to use Android’s layout system to lay out the views in your app, regardless of devices size. Through a series of hands-on exercises and challenges, you’ll learn about the view hierarchy, basic layout types, the powerful ConstraintLayout, and using the design and XML editors in Android Studio.
Take a look at what’s inside:
Part 1: Introduction to Android Layouts
In part one, learn how view layout and the view hierarchy works in Android.
Introduction: Find out what’s covered in our Beginning Android Layouts video tutorial series.
Building the Starter App: Download the starter app and build it in Android Studio, and take a peek at the included starter layout files.
ViewGroups and Layout Editors: Learn about the foundation of all Android layouts, the ViewGroup class, and explore the layout editors in Android Studio.
The View Hierarchy: Be introduced to the concept of the view hierarchy, and begin your study of layouts by seeing how to define view widths and heights.
Sizes, Margins, and Padding: Learn how to specify size units in Android, and use those size units to space views via margins and padding.
Challenge: Padding: Practice adding padding to a view, through a hands-on challenge.
Conclusion: Let’s review what you’ve covered in this first section, and discuss what’s next.
-
Introduction: Find out what’s covered in our Beginning Android Layouts video tutorial series.
-
Building the Starter App: Download the starter app and build it in Android Studio, and take a peek at the included starter layout files.
-
ViewGroups and Layout Editors: Learn about the foundation of all Android layouts, the ViewGroup class, and explore the layout editors in Android Studio.
-
The View Hierarchy: Be introduced to the concept of the view hierarchy, and begin your study of layouts by seeing how to define view widths and heights.
-
Sizes, Margins, and Padding: Learn how to specify size units in Android, and use those size units to space views via margins and padding.
-
Challenge: Padding: Practice adding padding to a view, through a hands-on challenge.
-
Conclusion: Let’s review what you’ve covered in this first section, and discuss what’s next.
Part 2: Basic Layout Types
In the second part, learn how to use the basic layout types: RelativeLayout and LinearLayout.
Introduction: Let’s review the basic layout types that you’ll learn about in this section.
RelativeLayout: Learn about how to use the RelativeLayout ViewGroup to position sibling views with specific relationships to one another.
Gravity and Cleanup: Learn how to align elements using the layout_gravity and gravity tags, and do some code and design cleanup.
Challenge: Relative Layout: Practice creating a RelativeLayout, through a hands-on challenge.
LinearLayout: Learn about how to use the LinearLayout ViewGroup to position views along a horizontal or vertical dimension.
Layout Weights: Discover how to use layout_weight with LinearLayout, in order to divide the shared size between sibling views in a specific ratio.
Challenge: LinearLayout: Practice creating a LinearLayout, through a hands-on challenge.
FrameLayout: Learn about how to use the FrameLayout ViewGroup to create a layering of views, and how to switch between the layers.
Challenge: FrameLayout: Practice creating an empty state using FrameLayout, through a hands-on challenge.
Conclusion: Let’s review what you learned about the basic layout types, and discuss what’s next.
-
Introduction: Let’s review the basic layout types that you’ll learn about in this section.
-
RelativeLayout: Learn about how to use the RelativeLayout ViewGroup to position sibling views with specific relationships to one another.
-
Gravity and Cleanup: Learn how to align elements using the layout_gravity and gravity tags, and do some code and design cleanup.
-
Challenge: Relative Layout: Practice creating a RelativeLayout, through a hands-on challenge.
-
LinearLayout: Learn about how to use the LinearLayout ViewGroup to position views along a horizontal or vertical dimension.
-
Layout Weights: Discover how to use layout_weight with LinearLayout, in order to divide the shared size between sibling views in a specific ratio.
-
Challenge: LinearLayout: Practice creating a LinearLayout, through a hands-on challenge.
-
FrameLayout: Learn about how to use the FrameLayout ViewGroup to create a layering of views, and how to switch between the layers.
-
Challenge: FrameLayout: Practice creating an empty state using FrameLayout, through a hands-on challenge.
-
Conclusion: Let’s review what you learned about the basic layout types, and discuss what’s next.
Part 3: ConstraintLayout
In part 3, learn how to use the complex but powerful ConstraintLayout.
Introduction: Let’s review what you’ll be learning in this section by introducing ConstraintLayout and constraints.
Converting to ConstraintLayout: Use the converter built-in to Android Studio to convert an existing layout to ConstraintLayout.
Editing Controls: Create a new ConstrainLayout from scratch, utilizing the layout editor editing controls
Challenge: Converting a Layout: Practice converting an existing layout to ConstraintLayout, through a hands-on challenge.
Challenge: Hiding Empty Views: Practice programmatically hiding empty views in a ConstraintLayout, through a hands-on challenge.
Conclusion: Let’s review what you’ve learned about ConstraintLayout, and discuss what’s next.
-
Introduction: Let’s review what you’ll be learning in this section by introducing ConstraintLayout and constraints.
-
Converting to ConstraintLayout: Use the converter built-in to Android Studio to convert an existing layout to ConstraintLayout.
-
Editing Controls: Create a new ConstrainLayout from scratch, utilizing the layout editor editing controls
-
Challenge: Converting a Layout: Practice converting an existing layout to ConstraintLayout, through a hands-on challenge.
-
Challenge: Hiding Empty Views: Practice programmatically hiding empty views in a ConstraintLayout, through a hands-on challenge.
-
Conclusion: Let’s review what you’ve learned about ConstraintLayout, and discuss what’s next.
Part 4: Configuration Changes
In part 4, learn to use both the design editor and XML editor in Android Studio.
Introduction: Let’s discuss why it’s important to handle both portrait mode and landscape mode device configurations.
Resource Qualifiers: Learn about how resource qualifiers are used to handle different device densities and also for localization.
Landscape Mode: See how to create a layout file tailored specifically for when the device is in the landscape orientation.
Challenge: Landscape Mode: Practice creating a landscape mode layout, through a hands-on challenge.
The Great Flattening: Remove all of the nested layouts in an existing layout to create a completely flat ConstraintLayout.
Conclusion: In this final episode, you’ll get a summary of the course as well as see an overview of Android layout topics that were not covered.
-
Introduction: Let’s discuss why it’s important to handle both portrait mode and landscape mode device configurations.
-
Resource Qualifiers: Learn about how resource qualifiers are used to handle different device densities and also for localization.
-
Landscape Mode: See how to create a layout file tailored specifically for when the device is in the landscape orientation.
-
Challenge: Landscape Mode: Practice creating a landscape mode layout, through a hands-on challenge.
-
The Great Flattening: Remove all of the nested layouts in an existing layout to create a completely flat ConstraintLayout.
-
Conclusion: In this final episode, you’ll get a summary of the course as well as see an overview of Android layout topics that were not covered.