alamkanak / Android-Week-View

Android Week View is an android library to display calendars (week view or day view) within the app. It supports custom styling.
Apache License 2.0
3.42k stars 1.23k forks source link

Can I implement the view in the attachment based on this library? #548

Closed WenEthan closed 4 years ago

WenEthan commented 5 years ago
Screen Shot 2019-05-24 at 10 16 57 AM
edablogs commented 5 years ago

did you find any solution to make this view? i m also looking for same solution.

cnbscience commented 5 years ago

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));

cnbscience commented 5 years ago

Never mind, the above answer is not for this question, sorry for that

alamkanak commented 4 years ago

Unfortunately, you cannot produce the attached design with the current library. But you can modify the library source code to achieve that design.