summaryrefslogtreecommitdiff
path: root/core/java/android/widget/RelativeLayout.java
diff options
context:
space:
mode:
authorPhilip Milne <pmilne@google.com>2012-03-13 12:00:04 -0700
committerPhilip Milne <pmilne@google.com>2012-03-13 15:22:07 -0700
commit1018fb42cb4958511a141787705aa429c5ec9bd3 (patch)
tree2ef291de5c2bfae90921e36354db1d56567a20fd /core/java/android/widget/RelativeLayout.java
parent065781397099719805a0a42023581b2622984dd4 (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/RelativeLayout.java')
-rw-r--r--core/java/android/widget/RelativeLayout.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/widget/RelativeLayout.java b/core/java/android/widget/RelativeLayout.java
index e4b8f3426c48..29cf00071e85 100644
--- a/core/java/android/widget/RelativeLayout.java
+++ b/core/java/android/widget/RelativeLayout.java
@@ -219,6 +219,20 @@ public class RelativeLayout extends ViewGroup {
}
/**
+ * Describes how the child views are positioned.
+ *
+ * @return the gravity.
+ *
+ * @see #setGravity(int)
+ * @see android.view.Gravity
+ *
+ * @attr ref android.R.styleable#RelativeLayout_gravity
+ */
+ public int getGravity() {
+ return mGravity;
+ }
+
+ /**
* Describes how the child views are positioned. Defaults to
* <code>Gravity.LEFT | Gravity.TOP</code>.
*