博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
1.1.3 Getting Started_Budding Your First App_Building a Simple User Interface
阅读量:7211 次
发布时间:2019-06-29

本文共 730 字,大约阅读时间需要 2 分钟。

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

转载于:https://www.cnblogs.com/zhhda/p/3783594.html

你可能感兴趣的文章
Coding 初级教程(二)——上传已有项目
查看>>
Esper epl语句实验
查看>>
【TensorFlow】CNN
查看>>
redis cli命令
查看>>
网上开店进货渠道大参考
查看>>
图灵成立七周年——经典回顾
查看>>
我曾经七次鄙视自己的灵魂 卡里.纪伯伦
查看>>
Oracle 默认表空间(default permanent tablespace) 说明
查看>>
Dapper的语法应用
查看>>
Effective C++ 条款44
查看>>
MODBUS-RTU通讯协议简介
查看>>
在.net中序列化读写xml方法的总结(转载)
查看>>
百度贴吧高考作文强贴
查看>>
Leetcode: Design Hit Counter
查看>>
FrameBuffer编程二(简单的程序上)
查看>>
一种避免 iOS 内存碎片的方法
查看>>
『中级篇』容器网络之host和none(29)
查看>>
每日源码分析 - Lodash(remove.js)
查看>>
Django 1.8.2 文档
查看>>
设计模式——简单工厂模式
查看>>