I want to have a seekbar(like int the link: YUI Library Examples) with marks at discrete progress points, but the progress interval is not static. How can I achieve this?
Share
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 can code up a custom
Viewthat draws the vertical lines at whatever points you want.See: http://developer.android.com/guide/topics/ui/custom-components.html
You’ll just need to override
onDraw(Canvas canvas)to draw your lines. You can use proportions of the width of the view as your markers. Each vertical line would be at the pointYour progress would be drawn in a similar manner, but yeah.. you’ve gotta do this yourself.