Calendar-Day-View
Calendar-Day-View copied to clipboard
CalendarDayView Customization
Hello!
I am trying to change some colours in your app so it matches the design I want to achieve.
I have found no information about this in the documentation, where should I begin editing? PS: To remove the line I tried to paint it white with app:lineColor="@android:color/white" but it fails to change any colour. I am willing to fork and edit if needed, if you put me on the right track! Thank you!
@cristidan94 Some ways to archive your requirements:
- The
CdvDecorationDefault .getDayView()
method returns a DayView. You could setVisible(GONE) (or anything else) for the view, which has id=@+id/separate_hour
(fromview_day.xml
) . Because Decoration allow us maximum customize your UI. - Fork project and hide/remove the lines as you want (or you could create a method likes
CalendarDayView .setTimeLineShow(boolean)
and create a pull request Hope it helps! 🥂
@khacpv
Thank you for the guidance! I've did it, and I'm really glad I can participate in this awesome library. I would like to further contribute, if you think what I have to do is doable. This seems much more of a challenge than the last one, especially now that I've seen how the layout is designed and how the library works. Anyway, I wanna give it a shot. I need to do somehow to replicate my layout designed here:
I've highlited the zone using the red square. Any idea on how to do this? (I will also try and play with the forked project from you, who knows maybe meanwhile I get an idea). Thanks in advance!