Closed WenEthan closed 4 years ago
did you find any solution to make this view? i m also looking for same solution.
I think it's pretty straigh forward and , I have modified these lines in goToNearestOrigin(), I have experimented it with 3. days I am sure you can make it as a parameter.
double leftDays = mCurrentOrigin.x / ((mWidthPerDay*(No_of_days_you_want_to_move) + mColumnGap);
int nearestOrigin = (int) (mCurrentOrigin.x - leftDays ((mWidthPerDay(No_of_days_you_want_to_move)) + mColumnGap));
mScroller.startScroll((int) mCurrentOrigin.x, (int) mCurrentOrigin.y, -nearestOrigin, 0, (int) (Math.abs(nearestOrigin) / (mWidthPerDay(No_of_days_you_want_to_move)) mScrollDuration));
Never mind, the above answer is not for this question, sorry for that
Unfortunately, you cannot produce the attached design with the current library. But you can modify the library source code to achieve that design.