diff options
| author | Aurimas Liutikas <aurimas@google.com> | 2019-01-17 17:20:10 -0800 |
|---|---|---|
| committer | Aurimas Liutikas <aurimas@google.com> | 2019-02-06 14:46:17 -0800 |
| commit | 8f004c85a0859b6fad16f26ac0fce7b2dc3db3b1 (patch) | |
| tree | 5fef875e31c2b8038912e079bae15ee1b5f75066 /core/java/android/widget/TextView.java | |
| parent | abb20bebd637c6b282c22dc8992100561181d58a (diff) | |
Add helper methods for View attribute debugging
Adding abilities to debug:
- Attribute resolution stack (which resources are looked
at when resolving an attribute)
- Attribute value source (where did each attribute value
get defined)
- Get explicit style id (if a view had it set via style="...")
This feature will be behind Settings.Global flag that Android
Studio will set to the debugged application package ID.
Bug: 111439551
Test: atest CtsViewTestCases:android.view.cts.ViewStyleTest
Change-Id: Ib6f9fc81000bb867b5b94a68953c99b0bc802d6c
Diffstat (limited to 'core/java/android/widget/TextView.java')
| -rw-r--r-- | core/java/android/widget/TextView.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 659b71f51588..3da450d75133 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -1055,6 +1055,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener int inputType = EditorInfo.TYPE_NULL; a = theme.obtainStyledAttributes( attrs, com.android.internal.R.styleable.TextView, defStyleAttr, defStyleRes); + saveAttributeDataForStyleable(context, com.android.internal.R.styleable.TextView, attrs, a, + defStyleAttr, defStyleRes); int firstBaselineToTopHeight = -1; int lastBaselineToBottomHeight = -1; int lineHeight = -1; |
