UI布局术语
horizontal, vertical
top, left, bottom, right
UIEdgeInsets
margin与padding
Interpreting Values
Values in Auto Layout are always in points. However, the exact meaning of these measurements can vary depending on the attributes involved and the view’s layout direction.
| 
 Auto Layout Attributes  | 
 Value  | 
 Notes  | 
|---|---|---|
| 
 
 
  | 
 The size of the view.  | 
 These attributes can be assigned constant values or combined with other Height and Width attributes. These values cannot be negative.  | 
| 
 
 
 
  | 
 The values increase as you move down the screen.  | 
 These attributes can be combined only with Center Y, Top, Bottom, and Baseline attributes.  | 
| 
 
 
  | 
 The values increase as you move towards the trailing edge. For a left-to-right layout directions, the values increase as you move to the right. For a right-to-left layout direction, the values increase as you move left.  | 
 These attributes can be combined only with Leading, Trailing, or Center X attributes.  | 
| 
 
 
  | 
 The values increase as you move to the right.  | 
 These attributes can be combined only with Left, Right, and Center X attributes. Avoid using Left and Right attributes. Use Leading and Trailing instead. This allows the layout to adapt to the view’s reading direction. By default the reading direction is determined based on the current language set by the user. However, you can override this where necessary. In iOS, set the   | 
| 
 
 
  | 
 The interpretation is based on the other attribute in the equation.  | 
 Center X can be combined with Center X, Leading, Trailing, Right, and Left attributes. Center Y can be combined with Center Y, Top, Bottom, and Baseline attributes.  | 
UI布局术语的更多相关文章
- Duilib源码分析(五)UI布局—Layout与各子控件
		
接下来,继续分析duilib之UI布局Layout,目前提供的布局有:VerticalLayout.HorizontalLayout.TileLayout.TabLayout.ChildLayout分 ...
 - iOS-屏幕适配-UI布局
		
iOS 屏幕适配:autoResizing autoLayout和sizeClass 一.图片解说 -------------------------------------------------- ...
 - AppleWatch___学习笔记(二)UI布局和UI控件
		
1.UI布局 直接开发,你会发现Apple Watch并不支持AutoLayout,WatchKit里有个类叫做WKInterfaceGroup,乍一看像是UIView,但是这货其实是用来布局的.从 ...
 - iOS开发~UI布局(三)深入理解autolayout
		
一.概要 通过对iOS8界面布局的学习和总结,发现autolayout才是主角,autolayout是iOS6引入的新特性,当时还粗浅的学习了下,可是没有真正应用到项目中.随着iOS设备尺寸逐渐碎片化 ...
 - iOS开发~UI布局(二)storyboard中autolayout和size class的使用详解
		
一.概要:前一篇初步的描述了size class的概念,那么实际中如何使用呢,下面两个问题是我们一定会遇到的: 1.Xcode6中增加了size class,在storyboard中如何使用? 2.a ...
 - iOS开发~UI布局(一)初探Size Class
		
随着iOS8系统的发布,一个全新的页面UI布局概念出现,这个新特性将颠覆包括iOS7及之前版本的UI布局方式,这个新特性就是Size Class.Size Class配合Auto Layout可以解决 ...
 - WPF UI布局之概述
		
在线演示:http://v.youku.com/v_show/id_XNzA5NDk2Mjcy.html 清晰版视频+代码下载:http://115.com/lb/5lbeer0m9lad 一.简单介 ...
 - iOS UI布局调试工具
		
查看ios软件的ui布局有三种: 1.DCIntrospect 这种方式是开源的,我从github上clone下来后运行demo,运行遇到了问题:Xcode cannot run using t ...
 - WPF案例 (六) 动态切换UI布局
		
原文:WPF案例 (六) 动态切换UI布局 这个Wpf示例对同一个界面支持以ListView或者CardView的布局方式呈现界面,使用控件ItemsControl绑定数据源,使用DataTempla ...
 
随机推荐
- Android studio 插件之 GsonFormat (自己主动生成javabean)
			
概述 相信大家在做开发的过程中都写过非常多的javabean ,非常多情况下 都是一个列表数据就是一个单独的javabean.假设大家自己敲的话费时费力 还非常easy敲错. 今天给大家推荐一个插件 ...
 - Java算法-奇怪的分式
			
题目: 上小学的时候,小明常常自己发明新算法.一次,老师出的题目是: 1/4 乘以 8/5 小明竟然把分子拼接在一起,分母拼接在一起,答案是:18/45 老师刚想批评他.转念一想.这个答案凑巧也对啊, ...
 - 网络学习笔记:TCP/IP连网和Internet
			
1.网关 由硬件和软件组成,实现不同网段间的数据传送. 常用路由器充当网关. 网关通常维护一份路由表,但只有少量的编址信息.它用这些信息把数据转发到知道更多信息的网关. 组成互联网骨干的网关称为核心网 ...
 - YTU 2632: B2 友元光顾
			
2632: B2 友元光顾 时间限制: 1 Sec 内存限制: 128 MB 提交: 378 解决: 241 题目描述 定义一个平面上的点类Point,其中设置成员函数distance1求当前对象 ...
 - Mac系统打开命令行终端及查看操作系统版本号的方法
			
Mac系统打开命令行终端的方法: 应用程序 --> 实用工具 --> 终端 Mac系统终端查看操作系统版本号的方法: 输入:#more /System/Library/CoreServic ...
 - [NOIP 2010] 引入入城
			
[题目链接] https://loj.ac/problem/2595 [算法] 显然 , 每个第一行的成市控制的一定是一段区间 那么 , 问题就转化为了经典的区间覆盖问题 , 贪心即可 , 时间复杂度 ...
 - codeforces round #428 div2
			
A:暴力模拟,能加就加,如果累计到了8就加上,每次累积 #include<bits/stdc++.h> using namespace std; int main() { ; scanf( ...
 - Tomcat启动Web.xml引用其它XML配置报FileNotFound异常解决方案
			
如果使用JEECG框架进行Tomcat启动时,如果web.xml引用了其他xml文件,需要在tomcat文件夹里的config文件夹里的context.xml文件里的Context标签里配置xmlBl ...
 - poj 1286 Necklace of Beads【polya定理+burnside引理】
			
和poj 2409差不多,就是k变成3了,详见 还有不一样的地方是记得特判n==0的情况不然会RE #include<iostream> #include<cstdio> us ...
 - bzoj 1629: [Usaco2007 Demo]Cow Acrobats【贪心+排序】
			
仿佛学到了贪心的新姿势-- 考虑相邻两头牛,交换它们对其他牛不产生影响,所以如果交换这两头牛能使这两头牛之间的最大值变小,则交换 #include<iostream> #include&l ...
 
			
		
Height
Width
Top
Bottom
Baseline
Leading
Trailing
Center X