Skip to content
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

Please provide example using Coordinatorlayout collapse Calendarview #32

Closed
HuuNguyen312 opened this issue Jul 20, 2019 · 6 comments
Closed

Comments

@HuuNguyen312
Copy link

Dear @kizitonwose

Your library is great which is very easy to custom.

Please help me provide an example using Coordinatorlayout collapse Calendarview

For example:
https://camo.githubusercontent.com/b609928ccdc65c98c1b6f2ab00cf6c46a12e8c81/687474703a2f2f6f736e6674736961652e626b742e636c6f7564646e2e636f6d2f737570657263616c656e6461726578616d706c652e676966

Thank you!

@kizitonwose
Copy link
Owner

It seems the link in your issue is broken.

@HuuNguyen312
Copy link
Author

https://github.com/MagicMashRoom/SuperCalendar

It is a gif image in that library

Thanks

@kizitonwose
Copy link
Owner

Don't know if it's a location-related problem but all the image links in that project's REAMDE are not working on my end. You can see the screenshot:

Screenshot 2019-07-21 at 8 37 27 PM

You should download the gifs and attach them directly with your comment here or upload them to another provider(e.g Gfycat) and share the links here.

@HuuNguyen312
Copy link
Author

You should download the gifs and attach them directly with your comment here or upload them to another provider(e.g Gfycat) and share the links here.

https://gfycat.com/focusedhonorableiguana

687474703a2f2f6f736e6674736961652e626b742e636c6f7564646e2e636f6d2f737570657263616c656e6461726578616d706c652e676966

Thanks for your responsing

@kizitonwose
Copy link
Owner

kizitonwose commented Jul 23, 2019

I believe you have to do something similar to what I did in Example 1, except you don't need a ValueAnimator in this case. You just need to add an offset change listener to your AppBar(AppBarLayout.OnOffsetChangedListener) and use the offset value passed into your listener to update the CalendarView's height and configuration accordingly.

@kizitonwose
Copy link
Owner

I consider this solved and will now close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants