When using a custom thumb drawable with a SeekBar view, the thumb drawable is clipped at the left and right edges of the view.
How can I fix this behavior?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should be able to fix this by setting
paddingLeftandpaddingRighton yourSeekBarto half the thumb width (remember to use density-independent units). You can also control the space allowed at the edges for a seek bar’s thumb by callingsetThumbOffset.