diff options
| author | Romain Guy <romainguy@google.com> | 2010-08-17 12:43:05 -0700 |
|---|---|---|
| committer | Romain Guy <romainguy@google.com> | 2010-08-17 12:43:05 -0700 |
| commit | 606e8cca6ac0e9a65a1a92003511b7c66d9ea439 (patch) | |
| tree | d57337134fc7a39693d3f0e645b8c671c11a6620 /core/java | |
| parent | 8bdb20bc4046f85e16802ab67576592b1f1d12c8 (diff) | |
| download | frameworks_base-606e8cca6ac0e9a65a1a92003511b7c66d9ea439.zip frameworks_base-606e8cca6ac0e9a65a1a92003511b7c66d9ea439.tar.gz frameworks_base-606e8cca6ac0e9a65a1a92003511b7c66d9ea439.tar.bz2 | |
Update FrameLayout documentation.
Bug #2924495
Change-Id: Idc06a1a4177f116a4796cd2fc83388a1a9a9cdbf
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/widget/FrameLayout.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/java/android/widget/FrameLayout.java b/core/java/android/widget/FrameLayout.java index e445180..559a5fe 100644 --- a/core/java/android/widget/FrameLayout.java +++ b/core/java/android/widget/FrameLayout.java @@ -32,8 +32,8 @@ import android.widget.RemoteViews.RemoteView; /** * FrameLayout is designed to block out an area on the screen to display - * a single item. You can add multiple children to a FrameLayout, but all - * children are pegged to the top left of the screen. + * a single item. You can add multiple children to a FrameLayout and control their + * position within the FrameLayout using {@link android.widget.FrameLayout.LayoutParams#gravity}. * Children are drawn in a stack, with the most recently added child on top. * The size of the frame layout is the size of its largest child (plus padding), visible * or not (if the FrameLayout's parent permits). Views that are GONE are used for sizing @@ -440,6 +440,8 @@ public class FrameLayout extends ViewGroup { * Per-child layout information for layouts that support margins. * See {@link android.R.styleable#FrameLayout_Layout FrameLayout Layout Attributes} * for a list of all child view attributes that this class supports. + * + * @attr ref android.R.styleable#FrameLayout_Layout_layout_gravity */ public static class LayoutParams extends MarginLayoutParams { /** @@ -447,6 +449,8 @@ public class FrameLayout extends ViewGroup { * are associated. * * @see android.view.Gravity + * + * @attr ref android.R.styleable#FrameLayout_Layout_layout_gravity */ public int gravity = -1; |
