Open KamikX opened 7 years ago
Hi @KamikX, workaround
MultiSlider multiSlider = findViewById(R.id.range_slider);
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
ColorStateList colorStateListRipple = new ColorStateList(
new int[][] {{0}},
new int[] {Color.GREEN} // ripple color
);
RippleDrawable rippleDrawable = (RippleDrawable) multiSlider.getBackground();
rippleDrawable.setColor(colorStateListRipple);
multiSlider.setBackground(rippleDrawable); // applying the ripple color
}
Hi @bmx666 thanks for workaround 👍
Hi, it would be possible add support for change ripple thumb drawable ? I have issue with API 21 where android:attr/colorControlHighlight" native is "red", API > 21 works properly like native SeekBar. My idea is replace ripple drawable control_background_multi_material.xml with custom via xml attribute or programmatically. Thanks in advance for the answer.