1.1.3 Getting Started_Budding Your First App_Building a Simple User Interface

The graphical user interface for an Android app is built using a hierarchy of View and ViewGroup objects. View objects are usually UI widgets such as buttons or text fields and ViewGroupobjects are invisible view containers that define how the child views are laid out, such as in a grid or a vertical list.

Android provides an XML vocabulary that corresponds to the subclasses of View and ViewGroup so you can define your UI in XML using a hierarchy of UI elements.

Android的用户界面使用 View 和 ViewGroup 这种层级结构创建。View 就是通常的UI widgets(小工具),比如 buttons,text fields,ViewGroup 是不可见的 view 的容器,它来定义包含的 View 的布局,比如一个网格或者垂直列表。

Android 提供一种XML语法对应 View 和 ViewGroup ,因此你能在 XML 中使用层级的 UI 元素来定义你的 UI

1.1.3 Getting Started_Budding Your First App_Building a Simple User Interface,,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。