Search code examples
androidseekbarcustom-view

Custom seekbar getting its edges cut


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?


Solution

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

    android:thumbOffset="-1px"