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失去焦点并且接受全部用户的动作.