1.1.3 Getting Started_Budding Your First App_Building a Simple User Interface

來源:互聯網
上載者:User

標籤:des   android   style   class   code   tar   

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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.