摘要
Android程序用户界面使用布局和组件来定义,为了适应各式各样的界面风格,Android系统提供了线性布局、帧布局、相对布局、绝对布局等五种布局方式,而线性布局(LinearLayou)是最简单、最常用、最实用的布局类型之一,能够按照设计者的意图在屏幕上垂直地或水平地组织用户界面控件或者小工具。通过设计一个计算器界面,详细阐述了线性布局的多级嵌套方法,基于这种布局方式可以实现大多数的Android程序用户界面。
Android application user interface can be defined by using the layout and components. In order to meet a wide range of interface style, Android system provides such five layouts as a linear layout, frame layout, relative placement, layout and other five absolute layout, among which a linear layout (LinearLayou) is the most one of the simplest, most common and most practical layout type. The LinearLayou can organize according to the designer's intent or gadget user interface controls vertically or horizontally on the screen. In this paper, a calculator interface design is proposed, and multi - level nested linear layout is also elaborated. Based on this layout, most of the Android user interface can be achieved.
出处
《智能计算机与应用》
2014年第1期72-74,共3页
Intelligent Computer and Applications