官术网_书友最值得收藏!

UI Design

The one feature that stands out in Android Studio above all others, including the Gradle build system, is the powerful User Interface(UI) development tools. The IDE provides a variety of views of our designs, allowing us to combine drag and drop construction and hard code in the development of a UI. Android Studio also comes equipped with a comprehensive preview system, which allows us to test our designs on any manner of device before running the project on an actual device. Along with these features, Android Studio also includes useful support libraries, such as the design library for creating material design layouts and the Percent Support Library for simplifying complex, proportional designs.

This chapter is the first of four, covering UI development. In it, we take a closer look at Studio's Layout Editors and tools. We will be building working interfaces using each of the most useful Layout/ViewGroup classes and designing for and managing screen rotation. The chapter continues by exploring Studio's preview system and how XML layout resources are stored and applied. The chapter concludes by returning to themes, Material Design, and the design support library.

In this chapter, you will learn how to:

  • Explore the Layout Editor
  • Apply linear and relative layouts
  • Install the constraint library
  • Create a ConstraintLayout
  • Apply constraints
  • Use the graphical constraints editor
  • Add constraint guidelines
  • Align TextView baselines
  • Apply bias
  • Use auto-connect
  • Build a hardware profile for a virtual device
  • Create a virtual SD card
主站蜘蛛池模板: 报价| 田阳县| 邵阳县| 宁陕县| 宝应县| 大方县| 闵行区| 咸阳市| 霞浦县| 上栗县| 灵川县| 乐安县| 霍邱县| 广饶县| 樟树市| 莒南县| 扶绥县| 安化县| 金沙县| 丹棱县| 通许县| 山阴县| 开鲁县| 温泉县| 奉化市| 三穗县| 收藏| 河曲县| 梨树县| 通州市| 读书| 淅川县| 安岳县| 嵩明县| 叙永县| 山东| 湖口县| 栖霞市| 鄂托克前旗| 荥经县| 昭觉县|