-
Notifications
You must be signed in to change notification settings - Fork 493
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
Monthly calendar view is not showing all days #232
Comments
This has been fixed previously so I'm not sure why you're still experiencing the issue. It would be nice if you can let me know how to reproduce this. |
@kizitonwose
It works without margin. But design requires to set margin because of the arrows. Do you have a suggestion how should I handle this? |
Maybe use padding instead? |
When using padding, calendar does not show all days in a week, it has an offset. I've tried different combinations. |
A rather temporary fix would be to wrap the calendar in a framelayout and apply the margin or padding to the framelayout instead. |
I've also tried that, but without success. |
Device is Xiaomi Mi A3, Android 10, 720x1560 Update: I've tried on other emulators and it is working. Don't know what the problem is with Xiaomi Mi A3 |
So, I've debugged more, and it turns out that it is working with margin 21dp. Somehow margin 20dp is a magic number :)). |
Ok, this is quite hilarious. I don't even know what to do here. |
So ...19 and 21... work fine on all devices but 20dp is where the issue happens? |
Yes, and not on all devices :) I've tested on emulators and these two resolutions have the same problem: 720x1560, 768x1280. |
I've tested on your Example1Fragment. If you want to reproduce this, create a virtual device with 720x1560. |
@kizitonwose |
I'll take a look soon. Thankfully you have something that works temporarily. |
|
It's not working as expected. Sometimes it returns a wrong value for the |
Could you explain further? |
The same thing happened to me, but calling notifyCalendarChanged in the month scroll listener fixed the issue for me. Also, since in its base the calendar is a RecyclerView, if you are toggling the visibility of views in a certain month they can get recycled and stay hidden in other months, so in the day binder init block make sure to set the proper visibility. Hope this helps. |
I'm closing this issue as the main problem is addressed. The idea that 20dp breaks on a 720x1560 device is not something I want to investigate 😆 |
Version: 0.4.5
Device: Xiaomi Mi A3, Android 10, 720x1560
When swiping through months, specifically when April is selected, calendar does not show all days. I've tried with
notifyMonthChanged(month: YearMonth)
but without success. Please advise.Recording: https://drive.google.com/file/d/1fXa9UL3pae6B-SiUKEDGZ9-AJ9OB79WS/view
And an image:
The text was updated successfully, but these errors were encountered: