From 4597e9806948256e82b9f1cdaa7019cbbd912668 Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Tue, 29 Jul 2014 07:25:49 -0700 Subject: Exposed getLocationOnScreen, added formatToHexString method. In order to use the ExportedProperty annotation, I needed a public non-void method which is why I created a new "public int[] getLocationOnScreen()." The formatToHexString method is used to convert an int or byte to a hex string prefixed with "0x". I set the value to true on these flags: mGravity, mPrivateFlags, mSystemUiVisibility, mViewFlags, mGroupFlags, mMarginFlags, and flags. Change-Id: I5914992ba19b80643dfcc6caa487398452e18cbc --- core/java/android/widget/LinearLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/java/android/widget/LinearLayout.java') diff --git a/core/java/android/widget/LinearLayout.java b/core/java/android/widget/LinearLayout.java index 82e624d5615a..6476cdc4cc1e 100644 --- a/core/java/android/widget/LinearLayout.java +++ b/core/java/android/widget/LinearLayout.java @@ -156,7 +156,7 @@ public class LinearLayout extends ViewGroup { equals = Gravity.FILL, name = "FILL"), @ViewDebug.FlagToString(mask = Gravity.RELATIVE_LAYOUT_DIRECTION, equals = Gravity.RELATIVE_LAYOUT_DIRECTION, name = "RELATIVE") - }) + }, formatToHexString = true) private int mGravity = Gravity.START | Gravity.TOP; @ViewDebug.ExportedProperty(category = "measurement") -- cgit v1.2.3