Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set Custom Drawable for position 0 and position 2 thumbs #85

Open
himanshumistri opened this issue Mar 5, 2018 · 1 comment
Open

Comments

@himanshumistri
Copy link

himanshumistri commented Mar 5, 2018

Hello,

I have tried for setting custom drawable for the thumb as they are in rectangle width and height.

I am using following code :

 mRangeSeekBar!!.getThumb(0).thumb= resources.getDrawable(R.drawable.ic_left_thumb,activity.theme)
        mRangeSeekBar!!.getThumb(2).thumb= resources.getDrawable(R.drawable.ic_right_thumb,activity.theme)

But it does not behave properly, How can I fix this issue.

I found that when i am using different size of thumb for all three thumb, Thumb bound are not working properly how to all different size thumbs?

@bmx666
Copy link
Contributor

bmx666 commented Mar 7, 2018

@himanshumistri , can you debug this function in library?

@Override
protected synchronized void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
    // ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants