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/ProgressBar.java | |
parent | b81b1447d2cfa9dc5bcc02c8a1b7193400a97ab6 (diff) | |
download | frameworks_base-7a36788f4a69b3ddaf8fb8e250e1a13bee7238fa.zip frameworks_base-7a36788f4a69b3ddaf8fb8e250e1a13bee7238fa.tar.gz frameworks_base-7a36788f4a69b3ddaf8fb8e250e1a13bee7238fa.tar.bz2 |
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/ProgressBar.java')
-rw-r--r-- | core/java/android/widget/ProgressBar.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/widget/ProgressBar.java b/core/java/android/widget/ProgressBar.java index 1dcb203..6dc9f78 100644 --- a/core/java/android/widget/ProgressBar.java +++ b/core/java/android/widget/ProgressBar.java @@ -36,6 +36,7 @@ import android.graphics.drawable.shapes.Shape; import android.util.AttributeSet; import android.view.Gravity; import android.view.View; +import android.view.ViewDebug; import android.view.animation.AlphaAnimation; import android.view.animation.Animation; import android.view.animation.AnimationUtils; @@ -335,6 +336,7 @@ public class ProgressBar extends View { * * @return true if the progress bar is in indeterminate mode */ + @ViewDebug.ExportedProperty public synchronized boolean isIndeterminate() { return mIndeterminate; } @@ -607,6 +609,7 @@ public class ProgressBar extends View { * @see #setMax(int) * @see #getMax() */ + @ViewDebug.ExportedProperty public synchronized int getProgress() { return mIndeterminate ? 0 : mProgress; } @@ -623,6 +626,7 @@ public class ProgressBar extends View { * @see #setMax(int) * @see #getMax() */ + @ViewDebug.ExportedProperty public synchronized int getSecondaryProgress() { return mIndeterminate ? 0 : mSecondaryProgress; } @@ -636,6 +640,7 @@ public class ProgressBar extends View { * @see #getProgress() * @see #getSecondaryProgress() */ + @ViewDebug.ExportedProperty public synchronized int getMax() { return mMax; } |