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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
powerhope
August 11, 2016
0
160
5_组件-界面布局
App Inventor移动应用开发
powerhope
August 11, 2016
Tweet
Share
More Decks by powerhope
See All by powerhope
1_App Inventor初步
powerhope
0
240
2_1_HelloPurr
powerhope
0
140
2_2_8-Ball(魔术8球)
powerhope
2
140
3_App Inventor编程基础
powerhope
0
120
4_组件-用户界面
powerhope
0
170
6_组件-多媒体
powerhope
0
110
7_组件-绘图动画
powerhope
0
130
8_组件-传感器
powerhope
0
140
9_组件-社交应用
powerhope
0
170
Featured
See All Featured
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
0
210
AI: The stuff that nobody shows you
jnunemaker
PRO
2
270
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
150
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
260
[SF Ruby Conf 2025] Rails X
palkan
1
760
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
270
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.1k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
How to Ace a Technical Interview
jacobian
281
24k
Scaling GitHub
holman
464
140k
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