diff options
author | Philip Milne <pmilne@google.com> | 2012-04-23 15:38:27 -0700 |
---|---|---|
committer | Philip Milne <pmilne@google.com> | 2012-04-23 16:41:04 -0700 |
commit | 10ca24a97cefc14fca1b26f59e627f487b3b108b (patch) | |
tree | fcdcad2bf4fb8df3e780abd31a9a1b62d5bb1c1f /core/java/android/view/View.java | |
parent | 6ec0c6afafd9bad5e4c33578e9355997a280649c (diff) | |
download | frameworks_base-10ca24a97cefc14fca1b26f59e627f487b3b108b.zip frameworks_base-10ca24a97cefc14fca1b26f59e627f487b3b108b.tar.gz frameworks_base-10ca24a97cefc14fca1b26f59e627f487b3b108b.tar.bz2 |
Promote layout debugging code from GridLayout to ViewGroup.
Layout debugging code draws rectangles around:
1. Layout insets (red)
2. Bounds (blue)
3. Margins (magenta)
Layout debug mode is enabled with:
adb shell setprop debug.layout true
Change-Id: Ia155a2d0fbf33693a1e3c040f627ea3a534e1aff
Diffstat (limited to 'core/java/android/view/View.java')
-rw-r--r-- | core/java/android/view/View.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 537c474..393fa65 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -45,6 +45,7 @@ import android.os.Parcel; import android.os.Parcelable; import android.os.RemoteException; import android.os.SystemClock; +import android.os.SystemProperties; import android.text.TextUtils; import android.util.AttributeSet; import android.util.FloatProperty; @@ -16914,6 +16915,11 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal Drawable mAccessibilityFocusDrawable; /** + * Show where the margins, bounds and layout bounds are for each view. + */ + final boolean mDebugLayout = SystemProperties.getBoolean("debug.layout", false); + + /** * Creates a new set of attachment information with the specified * events handler and thread. * |