Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
5_组件-界面布局
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
powerhope
August 11, 2016
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
5_组件-界面布局
App Inventor移动应用开发
powerhope
August 11, 2016
More Decks by powerhope
See All by powerhope
1_App Inventor初步
powerhope
0
290
2_1_HelloPurr
powerhope
0
160
2_2_8-Ball(魔术8球)
powerhope
2
170
3_App Inventor编程基础
powerhope
0
150
4_组件-用户界面
powerhope
0
190
6_组件-多媒体
powerhope
0
140
7_组件-绘图动画
powerhope
0
160
8_组件-传感器
powerhope
0
160
9_组件-社交应用
powerhope
0
190
Featured
See All Featured
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
410
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
830
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
The Limits of Empathy - UXLibs8
cassininazir
1
690
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6.2k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Docker and Python
trallard
47
4.2k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Writing Fast Ruby
sferik
630
63k
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