diff options
| author | Adam Powell <adamp@google.com> | 2011-09-15 14:19:30 -0700 |
|---|---|---|
| committer | Adam Powell <adamp@google.com> | 2011-09-15 14:49:19 -0700 |
| commit | 1fec24e0fff95afaa90bbf811e9f8db659eb9324 (patch) | |
| tree | a5bf821825913dc480919978a9ddb267d0ab5211 /core/java/android/widget/RelativeLayout.java | |
| parent | 247d8b08b2618c33a4ec1be974829c033c9b909f (diff) | |
Update docs for RelativeLayout to better explain its interpretation of
gravity.
Change-Id: Ie52dc23458c73dfb7fdbf929b802f968ef905557
Diffstat (limited to 'core/java/android/widget/RelativeLayout.java')
| -rw-r--r-- | core/java/android/widget/RelativeLayout.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/widget/RelativeLayout.java b/core/java/android/widget/RelativeLayout.java index 6edfd5923973..12a93ac888dc 100644 --- a/core/java/android/widget/RelativeLayout.java +++ b/core/java/android/widget/RelativeLayout.java @@ -212,6 +212,11 @@ public class RelativeLayout extends ViewGroup { * Describes how the child views are positioned. Defaults to * <code>Gravity.LEFT | Gravity.TOP</code>. * + * <p>Note that since RelativeLayout considers the positioning of each child + * relative to one another to be significant, setting gravity will affect + * the positioning of all children as a single unit within the parent. + * This happens after children have been relatively positioned.</p> + * * @param gravity See {@link android.view.Gravity} * * @see #setHorizontalGravity(int) |
