diff options
| author | Steve Zeigler <sfzeigler@gmail.com> | 2010-02-23 16:39:08 -0800 |
|---|---|---|
| committer | Steve Zeigler <sfzeigler@gmail.com> | 2010-02-23 16:39:08 -0800 |
| commit | 7a36788f4a69b3ddaf8fb8e250e1a13bee7238fa (patch) | |
| tree | 3b1f8b960b2b7e9bf7a300ec3d14cb6473249fc3 /core/java/android/widget/CompoundButton.java | |
| parent | b81b1447d2cfa9dc5bcc02c8a1b7193400a97ab6 (diff) | |
These changes add access to some status values in widgets listed below:
widget/CheckedTextView.java: report if the item is checked or not.
widget/CompoundButton.java: report if the item is checked or not.
widget/ProgressBar.java: isIndeterminate(), getProgress(), getSecondaryProgress(), and getMax() report what
sliders and progress bars are showing
widget/TextView.java: report the current selection: getSelectionStart() and getSelectionEnd()
Diffstat (limited to 'core/java/android/widget/CompoundButton.java')
| -rw-r--r-- | core/java/android/widget/CompoundButton.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/widget/CompoundButton.java b/core/java/android/widget/CompoundButton.java index 98b0976adb8d..bf02ad3bfd7b 100644 --- a/core/java/android/widget/CompoundButton.java +++ b/core/java/android/widget/CompoundButton.java @@ -26,6 +26,7 @@ import android.os.Parcel; import android.os.Parcelable; import android.util.AttributeSet; import android.view.Gravity; +import android.view.ViewDebug; import android.view.accessibility.AccessibilityEvent; /** @@ -98,6 +99,7 @@ public abstract class CompoundButton extends Button implements Checkable { return super.performClick(); } + @ViewDebug.ExportedProperty public boolean isChecked() { return mChecked; } |
