-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
1px artifact in middle of range selection #377
Comments
@quaddef without seeing your code, it's impossible to diagnose. either share your xml+DayViewAdapter+CellDecorator code, or try to repro in the sample app and comment here with a link to your fork |
@edenman Ok, no problem, here is an example. https://github.com/quaddef/android-times-square-example |
Sorry for delayed response. I looked at this a bit on Friday but couldn't figure out why there's a 1px gap. I'll try to look again soon, but can't promise I'll get to it this week. Let me know if you figure it out. |
@edenman Sometimes such artifacts happen using |
Maybe there is another way to disable the divider except make it 0 in CalenderPickerView.class ? |
I have this exact issue that I commented in #371 |
I have this exact issue #377 |
Same issue at our side #377 |
I was able to workaround this problem. I checked the values for width at CalendarCellView and the generated TextView and found out, that they do not match always. At my device (Samsung Galaxy S7) with a full width of 1080 the CalendarCellView got following width values (from left to right per row) So I created my own DayViewTextView class inherited from TextView and just overrode the layout method in following way
After that I created my own DayViewAdapter and just adapted it from the default one but used DayViewTextView:
and used it
This solved the problem with the small gap. |
When I'm using custom CellDecorator with DayViewAdapter, I have a strange artefact.
The text was updated successfully, but these errors were encountered: