Programatically changing bar value makes bar lose custom Style
jshivebr opened this issue · 4 comments
Hello !
I have a customized RangeBar, that only change barHeight, that works pretty well
class RangeSeekBarCustom : CrystalRangeSeekbar {
constructor(context: Context) : super(context)
constructor(context: Context, attrs: AttributeSet) : super(context, attrs)
constructor(context: Context, attrs: AttributeSet, defStyleAttr: Int) : super(context, attrs, defStyleAttr)
override fun getBarHeight(): Float {
return 5.toFloat()
}
}
But when i update min and max values programatically, the barHeight backs to default value. I think that might be because the rangebar is drawed again.
dateRangeSeekBar.setMinStartValue(200.toFloat()).setMaxStartValue(365.toFloat()).apply()
Any idea how i can fix this ou work-around this problem ?
Thanks in advance.
Apparently, this issue was fixed #13 on Oct 18, 2016. But the last repo 1.1.3 was released on September 27, 2016. A new repo should be released via maven. I think that's the solution.
Until then, #126 is the temporary solution.
Thanks @ramseth001 , im using jemshit repository while we dont get the new release.
I am also not able to reduce thickness(height) of Bar. Please help