summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2009-05-18 10:43:55 -0700
committerRomain Guy <romainguy@android.com>2009-05-18 10:43:55 -0700
commit924dd93a2990ffaa337148548aa62ba0128ed875 (patch)
tree318dfe524c6c5cd7fa8b52d30a34889b41596342 /core
parentce2372de58ad018623748f63e61ffc70c9eb8895 (diff)
downloadframeworks_base-924dd93a2990ffaa337148548aa62ba0128ed875.zip
frameworks_base-924dd93a2990ffaa337148548aa62ba0128ed875.tar.gz
frameworks_base-924dd93a2990ffaa337148548aa62ba0128ed875.tar.bz2
Fixes external #2669. Clarify the documentation of the XML attributes android:gravity and android:layout_gravity.
Diffstat (limited to 'core')
-rw-r--r--core/res/res/values/attrs.xml9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml
index b92beec..6e8782c 100644
--- a/core/res/res/values/attrs.xml
+++ b/core/res/res/values/attrs.xml
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+grav<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2006 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
@@ -668,8 +668,8 @@
<!-- A coordinate in the Y dimension. -->
<attr name="y" format="dimension" />
- <!-- Specifies how to place an object, both
- its x and y axis, within a larger containing object. -->
+ <!-- Specifies how to place the content of an object, both
+ on the x and y axis, within the object itself. -->
<attr name="gravity">
<!-- Push object to the top of its container, not changing its size. -->
<flag name="top" value="0x30" />
@@ -725,8 +725,7 @@
<attr name="entries" format="reference" />
<!-- Standard gravity constant that a child can supply to its parent.
- Defines how to place an object, both
- its x and y axis, within a larger containing object. -->
+ Defines how to place the view, both its x and y axis, within is parent view group. -->
<attr name="layout_gravity">
<!-- Push object to the top of its container, not changing its size. -->
<flag name="top" value="0x30" />