diff options
| author | Romain Guy <romainguy@google.com> | 2010-08-19 15:16:32 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-08-19 15:16:32 -0700 |
| commit | d970a1af6342d500ab066f28465158b74242e511 (patch) | |
| tree | 27e1e2cdc5cc8aaf39978b9d10abcdf07c077aa8 /core/java | |
| parent | 4f0a8df9fe70b44e82eca40263b11e9331f38939 (diff) | |
| parent | 606e8cca6ac0e9a65a1a92003511b7c66d9ea439 (diff) | |
| download | frameworks_base-d970a1af6342d500ab066f28465158b74242e511.zip frameworks_base-d970a1af6342d500ab066f28465158b74242e511.tar.gz frameworks_base-d970a1af6342d500ab066f28465158b74242e511.tar.bz2 | |
Merge "Update FrameLayout documentation."
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; |
