Skip to content

Commit 3004cc5

Browse files
committed
Add SeekBar property accessors to match available style attributes
Bug 6103624 Change-Id: I7bc863250f3b156cf6663e484baab2c35a949db5
1 parent ef08c1c commit 3004cc5

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

api/current.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25899,6 +25899,7 @@ package android.widget {
2589925899
ctor public AbsSeekBar(android.content.Context, android.util.AttributeSet);
2590025900
ctor public AbsSeekBar(android.content.Context, android.util.AttributeSet, int);
2590125901
method public int getKeyProgressIncrement();
25902+
method public android.graphics.drawable.Drawable getThumb();
2590225903
method public int getThumbOffset();
2590325904
method public void setKeyProgressIncrement(int);
2590425905
method public void setThumb(android.graphics.drawable.Drawable);

core/java/android/widget/AbsSeekBar.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,16 @@ public void setThumb(Drawable thumb) {
132132
}
133133
}
134134

135+
/**
136+
* Return the drawable used to represent the scroll thumb - the component that
137+
* the user can drag back and forth indicating the current value by its position.
138+
*
139+
* @return The current thumb drawable
140+
*/
141+
public Drawable getThumb() {
142+
return mThumb;
143+
}
144+
135145
/**
136146
* @see #setThumbOffset(int)
137147
*/

0 commit comments

Comments
 (0)