diff options
| author | Philip Milne <pmilne@google.com> | 2012-03-13 12:00:04 -0700 |
|---|---|---|
| committer | Philip Milne <pmilne@google.com> | 2012-03-13 15:22:07 -0700 |
| commit | 1018fb42cb4958511a141787705aa429c5ec9bd3 (patch) | |
| tree | 2ef291de5c2bfae90921e36354db1d56567a20fd /core/java/android/widget/FrameLayout.java | |
| parent | 065781397099719805a0a42023581b2622984dd4 (diff) | |
Fixes for bugs: #6103660, #6103957, #6104457 and #6104322.
Add getters and setters to the layout widgets so as to mirror their XML apis.
Change-Id: Ie2237fd55e1c3e4ec0d08b4f8154ea7e122c1e79
Diffstat (limited to 'core/java/android/widget/FrameLayout.java')
| -rw-r--r-- | core/java/android/widget/FrameLayout.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/widget/FrameLayout.java b/core/java/android/widget/FrameLayout.java index da98884e750b..d019d8c7b428 100644 --- a/core/java/android/widget/FrameLayout.java +++ b/core/java/android/widget/FrameLayout.java @@ -122,10 +122,25 @@ public class FrameLayout extends ViewGroup { } /** + * Describes how the foreground is positioned. + * + * @return foreground gravity. + * + * @see #setForegroundGravity(int) + * + * @attr ref android.R.styleable#FrameLayout_foregroundGravity + */ + public int getForegroundGravity() { + return mForegroundGravity; + } + + /** * Describes how the foreground is positioned. Defaults to START and TOP. * * @param foregroundGravity See {@link android.view.Gravity} * + * @see #getForegroundGravity() + * * @attr ref android.R.styleable#FrameLayout_foregroundGravity */ @android.view.RemotableViewMethod |
