Open GookLuckM opened 3 years ago
滑动月份 当有大小月切换时,显示日期会和获取时间有偏差. 目前改动了WheelTime中setReDay方法 if (currentItem > wv_day.getAdapter().getItemsCount() - 1) { currentItem = wv_day.getAdapter().getItemsCount() - 1; } wv_day.setCurrentItem(currentItem); 将setCurrentItem方法移出括号外 暂时解决了问题. 猜测是WheelVIew 中 totalScrollY 偏差导致. 不知道大神有没有更好的解决办法
if (currentItem > wv_day.getAdapter().getItemsCount() - 1) { currentItem = wv_day.getAdapter().getItemsCount() - 1; } wv_day.setCurrentItem(currentItem);
滑动月份 当有大小月切换时,显示日期会和获取时间有偏差. 目前改动了WheelTime中setReDay方法
if (currentItem > wv_day.getAdapter().getItemsCount() - 1) { currentItem = wv_day.getAdapter().getItemsCount() - 1; } wv_day.setCurrentItem(currentItem);
将setCurrentItem方法移出括号外 暂时解决了问题. 猜测是WheelVIew 中 totalScrollY 偏差导致. 不知道大神有没有更好的解决办法