-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow layout animation of the calendar view when switching between week and month modes #341
Comments
You can apply |
Oh I've tried that, @ekchang, but that doesn't work. It still jumps between month and week view. I'd like a smooth scroll. I think it can be done within the ViewGroup holding the calendar view within the library itself (I suppose it's a viewpager?). I have tried something like this, but that doesn't work:
|
@ekchang this does not work. I think it needs to be enabled from within the library itself. |
@chuks It doesn't work because it changes the adapter, I am struggling with the same. |
Aha , that makes sense. One way would be to put the calendar view inside a LinearLayout that has animateLayoutChanges set to true. |
Currently, when you call setCalendarDisplayMode(CalendarMode.MONTHS) or setCalendarDisplayMode(CalendarMode.WEEKS), the layout jumps between the views, making it look very abrupt. It would be great to enable layout changes, perhaps using enableTransitionType(LayoutTransition.CHANGING) or in xml android:animateLayoutChanges="true"
The text was updated successfully, but these errors were encountered: