thellmund / Android-Week-View

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

Customization improvements #266

Open IonutNegru87 opened 3 years ago

IonutNegru87 commented 3 years ago

Is your feature suggestion related to a problem? Please describe. I would like to be able to completely remove the separator between hour and days. I would like to be able to change the text color for events in the past.

Describe the solution you'd like A clear and concise description of what you want to happen. Property to show/hide the column separator between hour and calendar (currently it just can be doubled as the one from the actual day is still shown). Property to set the text color for events that are in the past (like we can do with the background of past events). Currently we can only set the defaultEventColor.

Describe alternatives you've considered Fork the library and add the customizations myself.

Additional context None

thellmund commented 3 years ago

👋 You should already be able to do this. You can set showDaySeparator and showHourSeparator to false to hide the separators. To change the text colour of events in the past, you can set a custom colour in onCreateEntity() by calling .setStyle() on the builder.

IonutNegru87 commented 3 years ago

Thank you @thellmund . I was indeed able to update the text color programmatically via WeekViewEntity.Style.

For the separator, I still want to keep the hour & day separators, I just wanted to remove the separator between the hour & calendar. Something like we have for the header with showHeaderBottomLine. I found showTimeColumnSeparator=false, which initially I thought it would do that, but it doesn't work in combination with showDaySeparator=true.