User Interface-用户界面

In an Android application, the uers interface is built using View and ViewGroup objects. There are many types of views and view groups, each of which is a descendant of the View class.

安卓应用一般都是由View和ViewGroup对象构建,他们都有多重形式,每一个都是继承自View类.

 

View objects are the basic units of user interface expression on the Android platform. The View class serves as the base for subclasses called "widgets," which offer fully implemented UI objects, like text fields and buttons. The ViewGroup class serves as the base for subclasses called "layouts," which offer different kinds of layout architecture, like linear, tabular and relative.

视图对象是安卓平台最基本的表现单元.凡是继承自View类的都称为widget,这些都提供了全面实现的UI对象,像文本区域和按钮.ViewGroup类下面的称为layout,并提供了各种布局架构,像线性布局,表格布局,相对布局.

 

A View object is a data structure whose properties store the layout parameters and content for a specific rectangular area of the screen. A View object handles its own measurement, layout, drawing, focus change, scrolling, and key/gesture interactions for the rectangular area of the screen in which it resides. As an object in the user interface, a View is also a point of interaction for the user and the receiver of the interaction events.

 

创建对话框

对话框是经常出现在当前activity的一个小窗口.起作用的activity失去焦点并且接受全部用户的动作.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值