Closed GodRuiCollection closed 1 year ago
WheelView的onDraw方法里有个计算translate的部分: float translateY = (float) (radius - Math.cos(radian) radius - (Math.sin(radian) maxTextHeight) / 2D); 其中 (Math.sin(radian) * maxTextHeight) / 2D 是什么意思...算的是什么?
@GodRuiCollection 可以参考这篇博客看一下: Android-PickerView系列之源码解析篇(二)
@xiaosong520 谢谢~
WheelView的onDraw方法里有个计算translate的部分: float translateY = (float) (radius - Math.cos(radian) radius - (Math.sin(radian) maxTextHeight) / 2D); 其中 (Math.sin(radian) * maxTextHeight) / 2D 是什么意思...算的是什么?