Custom seekbar getting its edges cut

Sergio picture Sergio · Oct 7, 2011 · Viewed 9k times · Source

Possible Duplicate:
Android SeekBar thumb gets clipped/cut off

I was doing a custom seekbar, following this tutorial: http://www.mokasocial.com/2011/02/create-a-custom-styled-ui-slider-seekbar-in-android/

But when I put the seek thumb either at the begining or at the end of the bar, its edge gets cut, like this: http://s2.postimage.org/d9dqrrms/myseekbar.png

I've done exactly what the tutorial says (just changed the gradient color). What's wrong?

Answer

Talon06 picture Talon06 · Oct 7, 2011

Have you tried setting the thumb offset for the thumb drawable?

android:thumbOffset="-1px"