Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom seekbar getting its edges cut [duplicate]

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?

like image 464
Sergio Avatar asked Oct 07 '11 16:10

Sergio


1 Answers

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

android:thumbOffset="-1px"
like image 116
Talon06 Avatar answered Oct 19 '22 05:10

Talon06