MultiSlider icon indicating copy to clipboard operation
MultiSlider copied to clipboard

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

Open himanshumistri opened this issue 7 years ago • 1 comments

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?

himanshumistri avatar Mar 05 '18 15:03 himanshumistri

@himanshumistri , can you debug this function in library?

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

bmx666 avatar Mar 07 '18 13:03 bmx666