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/TextView.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/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 f55ca3fecfd9..8980c17eb076 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -5726,6 +5726,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener /** * Convenience for {@link Selection#getSelectionStart}. */ + @ViewDebug.ExportedProperty public int getSelectionStart() { return Selection.getSelectionStart(getText()); } @@ -5733,6 +5734,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener /** * Convenience for {@link Selection#getSelectionEnd}. */ + @ViewDebug.ExportedProperty public int getSelectionEnd() { return Selection.getSelectionEnd(getText()); } |
