Open superit opened 7 years ago
There is a typo in calculating top. WeekDayView
Old :
float top = (mHourHeight * 24 / 1440) * (60 * now.get(Calendar.HOUR_OF_DAY) + now.get(Calendar.MINUTE)) + mTimeTextHeight + mCurrentOrigin.y;
Change it to:
float top = (mHourHeight * (float)24 / 1440) * (60 * now.get(Calendar.HOUR_OF_DAY) + now.get(Calendar.MINUTE)) + mTimeTextHeight + mCurrentOrigin.y;
在今天的视图里,您写的有个红色的横线标注了当前的时间,这个红色的时间线标注的不准确哦。