Does anybody know how to set the minimum and the maximum SeekBar‘s height by code? I want to reproduce the same behavior as the following XML’s excerpt:
<SeekBar android:minHeight="6dip"
android:maxHeight="6dip" ... />
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.
I do not know if there is a code for it. I achieve this creating an xml with the maximum height and other attributes and inflating the seekBar in its definition:
In XML:
And in the java code: