java.lang.ArithmeticException: divide by zero
at com.zyyoona7.wheel.WheelView.getCurrentPosition(WheelView.java:1177)
at com.zyyoona7.wheel.WheelView.observeItemChanged(WheelView.java:1055)
at com.zyyoona7.wheel.WheelView.invalidateIfYChanged(WheelView.java:1044)
at com.zyyoona7.wheel.WheelView.onTouchEvent(WheelView.java:948)
at android.view.View.dispatchTouchEvent(View.java:11820)
写了个小Demo测试滑动效果,结果报错闪退
测试代码:
报错位置应该是在com.zyyoona7.wheel.WheelView的getCurrentPosition()方法