Jay-Goo / RangeSeekBar

 A beautiful and powerful SeekBar what supports single、 range、steps、vetical、custom( 一款美观强大的支持单向、双向范围选择、分步、垂直、高度自定义的SeekBar)
Apache License 2.0
2.51k stars 386 forks source link

滑块有明显的毛刺 #135

Open weeksRen opened 4 years ago

weeksRen commented 4 years ago

当设置了rsb_thumb_width、rsb_thumb_height和rsb_progress_height某些值的时候,滑块会有明显的毛刺,比如说 app:rsb_thumb_width="30dp" app:rsb_thumb_height="30dp" app:rsb_progress_height="5dp",此时便会存在, 当 app:rsb_thumb_width="30dp" app:rsb_thumb_height="30dp" app:rsb_progress_height="6dp"时,毛刺又不会存在了

developerzjy commented 4 years ago

有可能是因为源码中的paint没设置抗锯齿,可以试一下在源码 RangeSeekBar.java 中的initPaint方法里面加入paint.setAntiAlias(true);