Beginning Android Layouts [SUBSCRIBER]

栏目: IT技术 · 发布时间: 4年前

Introduction to Android Layouts

Introduction

5:03 Free

Welcome to the Beginning Android Layouts course! Find out what the course covers and how to get started.

Download the starter app and build in in Android Studio, and take a peek at the included starter layout files.

Learn about the foundation of all Android layouts, the ViewGroup class, and explore the layout editors in Android Studio.

Discover the concept of the view hierarchy and begin your study of layouts by seeing how to define view widths and heights.

Learn how to specify size units in Android, and use those size units to space views via margins and padding.

Practice adding padding to a view, through a hands-on challenge.

Conclusion

1:10

Let's review what you've covered in this first section, and discuss what's next.

Basic Layout Types

Learn about the basic layout types that you'll discover in this section.

Learn about how to use the RelativeLayout ViewGroup to position sibling views with specific relationships to one another.

Learn how to align elements using the layout_gravity and gravity tags, and do some code and design cleanup.

Practice creating a RelativeLayout through a hands-on challenge.

Use the LinearLayout ViewGroup to position views along a horizontal or vertical dimension.

Discover how to use layout_weight with LinearLayout, in order to divide the shared size between sibling views in a specific ratio.

Practice creating a LinearLayout through a hands-on challenge.

Learn to use the FrameLayout ViewGroup to create a layering of views, and how to switch between the layers.

Practice creating an empty state using FrameLayout through a hands-on challenge.

Conclusion

1:47

Review what you've learned about the basic layout types, and find out what's next.

ConstraintLayout

In this section, you'll learn about ConstraintLayout and constraints. Let's dive in!

Use the converter built into Android Studio to convert an existing layout to ConstraintLayout.

Create a new ConstrainLayout from scratch, utilizing the layout editor editing controls.

Practice converting an existing layout to ConstraintLayout through a hands-on challenge.

Practice programmatically hiding empty views in a ConstraintLayout through a hands-on challenge.

Learn about some of the upcoming features in the upcoming version of ConstraintLayout.

Conclusion

1:25

Great job on this section! Review what you've learned, and what's up next.

Configuration Changes

It's important to handle both portrait mode and landscape mode device configurations. Learn why here!

Learn how resource qualifiers are used to handle different device densities and also for localization.

See how to create a layout file tailored specifically for when the device is in the landscape orientation.

Practice creating a landscape mode layout through a hands-on challenge.

Remove all of the nested layouts in an existing layout to create a completely flat ConstraintLayout.

Conclusion

2:50

Congrats on making it through the course! Review what you've learned, get an overview of Android layout topics that weren't covered, and see where to go from here.

Who is this for?

Those who are new to Android development and looking to build an app from scratch. This courses teaches how to compose interfaces from basic layout types such as FrameLayout, RelativeLayout and LinearLayout.

Once you've learned the basic layout types, you'll take your skills to the next level by learning ConstraintLayout, and ultimately build a complex layout using what is known as flat layout.

Before taking this course, we recommend having worked through the Android and Kotlin for Beginners learning path first.

Covered concepts

  • LinearLayout
  • FrameLayout
  • RelativeLayout
  • ConstraintLayout
  • Flat Layout
  • XML Editing
  • Dimen values
  • Android measurement units

以上所述就是小编给大家介绍的《Beginning Android Layouts [SUBSCRIBER]》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

从莎草纸到互联网:社交媒体2000年

从莎草纸到互联网:社交媒体2000年

[英]汤姆·斯丹迪奇 / 林华 / 中信出版社 / 2015-12 / 58.00元

【内容简介】 社交媒体其实并不是什么新鲜的东西。从西塞罗和其他古罗马政治家用来交换信息的莎草纸信,到宗教改革、美国革命、法国大革命期间印制的宣传小册子,过去人类跟同伴交流信息的方式依然影响着现代社会。在报纸、广播和电视在散播信息上面统治了几十年后,互联网的出现使社交媒体重新变成人们与朋友分享信息的有力工具,并推动公共讨论走向一个新的模式。 汤姆•斯丹迪奇在书中提醒我们历史上的社交网络其......一起来看看 《从莎草纸到互联网:社交媒体2000年》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试