Skip to content

Commit a3f3330

Browse files
Christopher TateAndroid (Google) Code Review
authored andcommitted
Merge "DOCUMENTATION ONLY: try to clarify gravity vs layout_gravity" into jb-mr1-dev
2 parents b746feb + 3994480 commit a3f3330

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/res/res/values/attrs.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,8 +1197,8 @@
11971197
<!-- A coordinate in the Y dimension. -->
11981198
<attr name="y" format="dimension" />
11991199

1200-
<!-- Specifies how to place the content of an object, both
1201-
on the x- and y-axis, within the object itself. -->
1200+
<!-- Specifies how an object should position its content, on both the X and Y axes,
1201+
within its own bounds. -->
12021202
<attr name="gravity">
12031203
<!-- Push object to the top of its container, not changing its size. -->
12041204
<flag name="top" value="0x30" />
@@ -1257,8 +1257,8 @@
12571257
<!-- Reference to an array resource that will populate a list/adapter. -->
12581258
<attr name="entries" format="reference" />
12591259

1260-
<!-- Standard gravity constant that a child can supply to its parent.
1261-
Defines how to place the view, both its x- and y-axis, within its parent view group. -->
1260+
<!-- Standard gravity constant that a child supplies to its parent.
1261+
Defines how the child view should be positioned, on both the X and Y axes, within its enclosing layout. -->
12621262
<attr name="layout_gravity">
12631263
<!-- Push object to the top of its container, not changing its size. -->
12641264
<flag name="top" value="0x30" />

0 commit comments

Comments
 (0)