TextSeekBar
TextSeekBar copied to clipboard
背景色比前景色
背景色比前景色突出一点,如何设置解决
在复杂自定义中有背景和前景支持shape的使用介绍,shape可以根据需要的情况自己绘制,这应该是可以满足你的需求的。
<declare-styleable name="MultiSeekBar">
<!-- 背景进度-->
<attr name="backgroundProgress" format="reference|color" />
<!-- 背景高度-->
<attr name="backgroundProgressHeight" format="dimension" />
<!-- 前景进度-->
<attr name="prospectProgress" format="reference|color" />
<!-- 前景高度-->
<attr name="prospectProgressHeight" format="dimension" />
<!-- thumb偏移量 针对thumb透明边框露底问题处理,但是设置了之后,进度条的宽度在视觉效果上会变窄 :总宽度 - 2倍偏移量 = 实际宽度 -->
<attr name="multiThumbOffset" format="dimension"/>
</declare-styleable>