I\'m trying to do a \"labeled\" thumb for my Seekbar. The objective is to customize a text above the thumb every time the Seekbar position changes.
I\'m doing this:
Pass int progress to the method where you set drawable to the seekBar and use setProgress() method:
private void setSeekBarLabel(String text, int progress)
{
BitmapDrawable thumb = Utils.writeOnBitmap(thumbBmp, text, 0, 0, thumbLablePaint);
seekBar.setThumb(thumb);
seekBar.setProgress(progress);
}
and add the second argument to the calling method:
setSeekBarLabel(String.valueOf(progress), progress);