1

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:

How can I do that?

Giks91
  • 273
  • 3
  • 5
  • 20

1 Answers1

2

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"
H.P.
  • 1,181
  • 1
  • 13
  • 26
  • Now I see that a white gap was visible on Android 5.0 and it's not visible on Android 4.4 so it's a good solution thanks! – Giks91 Jul 20 '17 at 09:05