Reputation: 301
I'm trying to hide the thumb of seekBar by default and show it if you touch the seekbar for the first time, but I can't make the thumb invisible. I tried:
mySeekBar.setThumbOffset(0);
seekbar.getThumb.setVisible(false, false)
- it doesn't work as wellHow can I do that?
Upvotes: 1
Views: 1823
Reputation: 1221
Try this way:(To remove gap)
seekbar.setSplitTrack(false);
seekbar.getThumb().mutate().setAlpha(0);
Or, You can add following In the seekbar's XML layout.
android:splitTrack="false"
Upvotes: 3