diff options
| author | Ashley Rose <ashleyrose@google.com> | 2019-02-05 21:03:00 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-02-05 21:03:00 +0000 |
| commit | 2879c9c95f7f6f2a1bb63e46767deb2e77eecc84 (patch) | |
| tree | 587803698d154e1b44b06644af1432255194c948 /core/java/android/widget/CompoundButton.java | |
| parent | 03da687d5a6347211788362eb95ed54f8ca6fb1f (diff) | |
| parent | 55f9f92545209eddff13e120734e5e3b8190402a (diff) | |
Merge "@InspectableProperty coverage for android.widget"
Diffstat (limited to 'core/java/android/widget/CompoundButton.java')
| -rw-r--r-- | core/java/android/widget/CompoundButton.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/widget/CompoundButton.java b/core/java/android/widget/CompoundButton.java index d35bec8d08d5..a0f93da90847 100644 --- a/core/java/android/widget/CompoundButton.java +++ b/core/java/android/widget/CompoundButton.java @@ -39,6 +39,7 @@ import android.view.accessibility.AccessibilityEvent; import android.view.accessibility.AccessibilityNodeInfo; import android.view.autofill.AutofillManager; import android.view.autofill.AutofillValue; +import android.view.inspector.InspectableProperty; import com.android.internal.R; @@ -145,6 +146,7 @@ public abstract class CompoundButton extends Button implements Checkable { return handled; } + @InspectableProperty @ViewDebug.ExportedProperty @Override public boolean isChecked() { @@ -282,6 +284,7 @@ public abstract class CompoundButton extends Button implements Checkable { * @see #setButtonDrawable(Drawable) * @see #setButtonDrawable(int) */ + @InspectableProperty(name = "button") @Nullable public Drawable getButtonDrawable() { return mButtonDrawable; @@ -314,6 +317,7 @@ public abstract class CompoundButton extends Button implements Checkable { * @attr ref android.R.styleable#CompoundButton_buttonTint * @see #setButtonTintList(ColorStateList) */ + @InspectableProperty(name = "buttonTint") @Nullable public ColorStateList getButtonTintList() { return mButtonTintList; @@ -342,6 +346,7 @@ public abstract class CompoundButton extends Button implements Checkable { * @attr ref android.R.styleable#CompoundButton_buttonTintMode * @see #setButtonTintMode(PorterDuff.Mode) */ + @InspectableProperty @Nullable public PorterDuff.Mode getButtonTintMode() { return mButtonTintMode; |
