thellmund / Android-Week-View

Display highly customizable calendar views in your Android app
Apache License 2.0
188 stars 98 forks source link

Event Time interval display error #268

Closed kid3652 closed 3 years ago

kid3652 commented 3 years ago

Describe the bug When I setStartTime16:40 and setEndTime 20:00,it just show like 16:40~19:45。(As shown below)

I still use weekView.setDateTimeInterpreter(),I am not sure if it make this bug. ( I use JAVA not Kotlin,I don't know how to use weekView.setDateFormatter() )

Screenshots If applicable, add screenshots or a screen recording to help explain your problem. image

Additional context

thellmund commented 3 years ago

👋 Can you share a sample project where this problem occurs?

kid3652 commented 3 years ago

👋 Can you share a sample project where this problem occurs?

Example Project: https://github.com/kid3652/WeekViewTest.git.

thellmund commented 3 years ago

This is the line that causes this: By setting eventMarginVertical, the event’s height will be reduced. I recommend to set this to 1dp or 2dp. This creates a visible separation between adjacent events, but doesn’t falsify their end dates as much.

kid3652 commented 3 years ago

When I set eventMarginVertical , I didn't notice this situation. But it's well now. Thank you very much.