Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
5_组件-界面布局
Search
powerhope
August 11, 2016
0
140
5_组件-界面布局
App Inventor移动应用开发
powerhope
August 11, 2016
Tweet
Share
More Decks by powerhope
See All by powerhope
1_App Inventor初步
powerhope
0
200
2_1_HelloPurr
powerhope
0
130
2_2_8-Ball(魔术8球)
powerhope
2
120
3_App Inventor编程基础
powerhope
0
100
4_组件-用户界面
powerhope
0
140
6_组件-多媒体
powerhope
0
89
7_组件-绘图动画
powerhope
0
110
8_组件-传感器
powerhope
0
120
9_组件-社交应用
powerhope
0
140
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
358
22k
Fantastic passwords and where to find them - at NoRuKo
philnash
39
2.5k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
123
39k
What’s in a name? Adding method to the madness
productmarketing
PRO
17
2.7k
Web Components: a chance to create the future
zenorocha
306
41k
Product Roadmaps are Hard
iamctodd
45
9.8k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
323
20k
Build The Right Thing And Hit Your Dates
maggiecrowley
25
2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
12
1k
Mobile First: as difficult as doing things right
swwweet
217
8.6k
VelocityConf: Rendering Performance Case Studies
addyosmani
321
23k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
0
48
Transcript
College of Mathematics and Computer Science, Hunan Normal University 瞿绍军
湖南师范大学数学与计算机科学学院
College of Mathematics and Computer Science, Hunan Normal University 界面布局
College of Mathematics and Computer Science, Hunan Normal University 水平布局HorizontalArrangement
College of Mathematics and Computer Science, Hunan Normal University 水平布局HorizontalArrangement
College of Mathematics and Computer Science, Hunan Normal University
水平布局组件可以实现内部组件自左向右的水平排 列,在垂直方向上居中对齐。 如果水平布局组件的高度设置为“自动”,当水平布 局内部组件的高度均为“充满”时,水平布局组件的 实际高度由水平布局内部组件的高度经计算确定; 当内部组件设定了高度时,水平布局布局组件的高 度取决于内部最高的那个组件,当布局组件内部不 包含组件时,其高度为100。 水平布局HorizontalArrangement
College of Mathematics and Computer Science, Hunan Normal University
如果水平布局组件的高度设置为“像素”或百分比时 ,当内部组件的高度超过水平布局的高度时,内部 组件不能完全显示,如图按钮1组件未完全显示。 水平布局HorizontalArrangement
College of Mathematics and Computer Science, Hunan Normal University
如果水平布局组件的宽设置为“自动”,其实际宽 度为内部所有组件宽度之和;此时如果内部组件将 宽度设为“充满”,则视同设为“自动”。 水平布局HorizontalArrangement
College of Mathematics and Computer Science, Hunan Normal University
如果水平布局组件的宽度设置为“充满”或者某个 具体数值,当某些内部组件的宽度设为“充满”时 ,则这些组件的宽度将充满布局组件的剩余宽度, 如图按钮1。 水平布局HorizontalArrangement
College of Mathematics and Computer Science, Hunan Normal University 垂直布局VerticalArrangement
College of Mathematics and Computer Science, Hunan Normal University 垂直布局VerticalArrangement
College of Mathematics and Computer Science, Hunan Normal University
垂直布局组件可以实现内部组件自上而下的垂直排 列,最先加入的组件在顶部,后面的组件依次向下 排列。内部组件在水平方向上居左对齐。 如果布局组件宽度设为“自动”,则其实际宽度取 决于内部最宽的、宽度属性不为“充满”的组件的 宽度;如果内部组件宽度都设置为“充满”,则视 同设置为“自动”,布局组件的实际宽度经计算确 定;如果内部不包含任何组件,则其宽度为100。 垂直布局VerticalArrangement
College of Mathematics and Computer Science, Hunan Normal University
如果布局组件的高度属性设为“自动”,其实际高 度取决于内部组件高度的总和;此时如果内部组件 高度设为“充满”,则视同设为“自动”。 如果布局组件高度属性设为“充满”或某个固定值 ,则内部高度设为“充满”的组件将充满布局组件 的剩余高度。 垂直布局VerticalArrangement
College of Mathematics and Computer Science, Hunan Normal University 表格布局TableArrangement
College of Mathematics and Computer Science, Hunan Normal University 表格布局TableArrangement
College of Mathematics and Computer Science, Hunan Normal University
使内部组件按照表格方式排列。 在表格布局组件中,组件按照表格的行和列,即单 元格排列;如果多个组件占据同一个单元格,则只 有最后一个组件可见。 在行内,所有组件在垂直方向上居中对齐。 表格布局TableArrangement
College of Mathematics and Computer Science, Hunan Normal University
列的宽度取决于该列中最宽的组件;当内部组件宽 度设为“充满”时,视同设为“自动”; 同时,所 有组件也将同时充满整个列宽。 行的高度取决于该行内最高的、高度属性不等于“ 充满”的组件;如果行内所有组件的高度都设为“ 充满”,则视同设为“自动”,布局组件的高度经 计算确定。 表格布局TableArrangement