4_组件-用户界面.pdf
文本预览下载声明
瞿绍军
湖南师范大学数学与计算机科学学院
College of Mathematics and Computer Science, Hunan Normal University
组件
在AI 中组件分为可视组件和非可视组件。
可视组件指当App运行后能够看见的组件,如按钮
、标签和文本输入框等。可视组件常用于设计App
的界面。
非可视组件在应用中发挥特定作用,但不会显示在
用户界面中,如传感器组件和声音组件等。
组件一般都有属性和行为,通过设置每个组件的属
性值和对事件响应的行为,组合形成独特的App应
用。
College of Mathematics and Computer Science, Hunan Normal University
College of Mathematics and Computer Science, Hunan Normal University
Screen
Screen相当于手机的屏幕,是进行用户界
面设计的地方。它是一个容器,上面可以
放置组件面板中的组件。
College of Mathematics and Computer Science, Hunan Normal University
Screen
College of Mathematics and Computer Science, Hunan Normal University
Screen
College of Mathematics and Computer Science, Hunan Normal University
Screen
College of Mathematics and Computer Science, Hunan Normal University
Screen
College of Mathematics and Computer Science, Hunan Normal University
Screen
应用说明(AboutScreen):对App的说明,不会显示在
用户界面上。
水平对齐(AlignHorizontal):屏幕中放置的组件在水
平方向上的对齐方式。包括居左、居中、居右三种方式。
垂直对齐(AlignVertical ):屏幕中放置的组件在垂直方
向上的对齐方式。包括居上、居中、居下三种方式。
AppName :App应用程序名称。导出项目源文件和apk
文件时的名称。
背景颜色(BackgroundColor):Screen的背景颜色。
可以单击下面颜色框选取适合的颜色。
College of Mathematics and Computer Science, Hunan Normal University
Screen
背景图片(BackgroundImage):用图片作为
Screen的背景。
关屏动画(CloseScreenAnimation):关闭当
前屏幕时的过渡效果,
图标(Icon):apk程序安装到手机后,在手机
里显示的程序图标。
开屏动画(OpenScreenAnimation):打开该
屏幕时的过渡效果。
College of Mathematics and Computer Science, Hunan Normal University
Screen
屏幕方向(ScreenOrientation):设定屏幕显示的方向
。包括不设方向(默认)、锁定竖屏(只能竖屏方式)、
锁定横屏(只能横屏方式)、自动感应(利用方向传感器
自动设置屏幕方向)和用户设定(根据用户手机设置显示
)。
允许滚动(Scrollable):设置是否允许屏幕进行
滚动。
状态栏显示(Sh
显示全部