diff --git a/api/current.txt b/api/current.txt index 2532716d57bd4..e7ac4aedd170f 100644 --- a/api/current.txt +++ b/api/current.txt @@ -25899,6 +25899,7 @@ package android.widget { ctor public AbsSeekBar(android.content.Context, android.util.AttributeSet); ctor public AbsSeekBar(android.content.Context, android.util.AttributeSet, int); method public int getKeyProgressIncrement(); + method public android.graphics.drawable.Drawable getThumb(); method public int getThumbOffset(); method public void setKeyProgressIncrement(int); method public void setThumb(android.graphics.drawable.Drawable); diff --git a/core/java/android/widget/AbsSeekBar.java b/core/java/android/widget/AbsSeekBar.java index e36afa3c81a59..ca5648a06ed4e 100644 --- a/core/java/android/widget/AbsSeekBar.java +++ b/core/java/android/widget/AbsSeekBar.java @@ -132,6 +132,16 @@ public abstract class AbsSeekBar extends ProgressBar { } } + /** + * Return the drawable used to represent the scroll thumb - the component that + * the user can drag back and forth indicating the current value by its position. + * + * @return The current thumb drawable + */ + public Drawable getThumb() { + return mThumb; + } + /** * @see #setThumbOffset(int) */