Open weeksRen opened 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"时,毛刺又不会存在了
有可能是因为源码中的paint没设置抗锯齿,可以试一下在源码 RangeSeekBar.java 中的initPaint方法里面加入paint.setAntiAlias(true);
当设置了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"时,毛刺又不会存在了