Skip to content

Instantly share code, notes, and snippets.

@yqritc
yqritc / TextThumbSeekBar.md
Last active April 17, 2024 08:26
SeekBar showing its progress as text on thumb

TextThumbSeekBar

Define a custom class extending SeekBar to show the progress text on thumb of SeekBar.

public class TextThumbSeekBar extends SeekBar {

    private int mThumbSize;
    private TextPaint mTextPaint;

    public TextThumbSeekBar(Context context) {