-
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
Height doesn't adjust for each month with wrap_content on horizontal paged calendar #281
Comments
This link is not working.
I do not understand, could you explain a bit more? |
@kizitonwose thanks for the reply. In case that you don't have suggestions for the problem mentioned above, I could try a workaround if you know the answer for that. |
Ok, that's not possible. The calendar adjusts its height from the bottom when a month has fewer rows than the previous one. The spreading behavior in the second video looks rather odd to me, but not possible anyways. |
The library uses a linear layout internally, so if you really want this, willing to fork the project, and the calendar has a fixed height, then in the binding logic, you'd just divide the remaining bottom space by the number of visible rows and set it as a divider on the linear layout. |
Hi @kizitonwose, sorry for the confusion, please don't focus on my second question about the spreading of rows. It was just an alternative that I mentioned if we don't solve the first problem. Focus on the problem in the first video where you can see that I can't see all the rows because they are cut off. CalednarView is not resized automatically with wrap_content so it shows all rows. |
Ok, please check with version 1.0.2 which was released yesterday, this issue is likely fixed. |
Hey @kizitonwose, thanks for keeping the library up to date. Take a look at a video, you can see that some days are missing. |
Are you reloading the calendar every time it scrolls to a new month? |
Yes, I call |
Why? |
Every time I scroll I have to pull data from the server, after that I have to show that data on the calendar for that month. In I tested now without calling notifyCalendarChanged() and the same problem is still happening. Some days start to be invisible after scrolling back to that month. |
Hi @kizitonwose, a reminder in case you missed my last comment. Do you have an idea what could go wrong, maybe we can take a look at the library together to find the source of the bug and to fix it? |
Are you sure this is not an issue with your binding logic? If you can set up one of the examples to reproduce this, then I can take a look directly. |
@kizitonwose You solved the first problem with the library, the second one with disappearing dates was on my side in binding logic, it's fixed now. Thanks for your help! |
Steps to reproduce
Note:
Is this an edge case because February starts on Monday with 28 days and it has 4 rows?
With fixed android:layout_height it shows all dates, but doesn't look nice with extra space at the bottom. Also, I can't find the right height that will show all days for every screen size.
Is there a possibility to have fixed size and spacing between rows to be auto-adjusted?
Device:
Samsung S8,
Samsung A5 2017
Video:
https://vimeo.com/user133404315/review/511093300/5daa85a221
The text was updated successfully, but these errors were encountered: