Skip to content

Commit d9dfc7f

Browse files
committed
update readme
1 parent ee298e8 commit d9dfc7f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ two-way constraints, such as chains(not yet supported, please use with Flex).
122122
14. relative id(if an id is defined for a child element, it cannot be referenced using a relative
123123
id)
124124
1. rId(3) represents the 3th child element, and so on
125-
2. sId(-1) represents the previous sibling element, and so on
126-
3. sId(1) represents the next sibling element, and so on
125+
2. rId(-1) represents the last child element
126+
3. rId(-2) represents the penultimate child element, and so on
127+
4. sId(-1) represents the previous sibling element, and so on
128+
5. sId(1) represents the next sibling element, and so on
127129
15. wrapper constraints
128130
1. topLeftTo
129131
2. topCenterTo

README_CN.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,10 @@ build 耗时有时甚至超过渲染耗时。
9696
计算出来。未确定边的大小必须设置为 matchConstraint,确定边的大小可以为 matchParent,固定大小(>=0),matchConstraint)
9797
14. 相对 id(这是为懒癌患者设计的,因为命名是个麻烦事。如果已经为子元素定义了 id,则不能再使用相对 id 来引用他们)
9898
1. rId(3) 代表第三个子元素,以此类推
99-
2. sId(-1) 代表上一个兄弟元素,以此类推
100-
3. sId(1) 代表下一个兄弟元素,以此类推
99+
2. rId(-1) 代表最后一个子元素
100+
3. rId(-2) 代表倒数第二个子元素,以此类推
101+
4. sId(-1) 代表上一个兄弟元素,以此类推
102+
5. sId(1) 代表下一个兄弟元素,以此类推
101103
15. 包装约束,是对基本约束的封装,便于使用,最终会转化成基本约束
102104
1. topLeftTo
103105
2. topCenterTo

0 commit comments

Comments
 (0)