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,布布扣,bubuko.com

1.1.3 Getting Started_Budding Your First App_Building a Simple User Interface

上一篇:Mobiscroll手机触屏日期选择器


下一篇:十三、Android学习笔记_Andorid控件样式汇总