Calendar-Day-View icon indicating copy to clipboard operation
Calendar-Day-View copied to clipboard

CalendarDayView Customization

Open cristidan94 opened this issue 7 years ago • 2 comments

Hello! I am trying to change some colours in your app so it matches the design I want to achieve. fabiz-orar-v2

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 avatar Oct 16 '17 10:10 cristidan94

@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 (from view_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 avatar Oct 17 '17 09:10 khacpv

@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: 31607578-947e447e-b275-11e7-8663-56d7e2ca08a6 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!

cristidan94 avatar Oct 19 '17 07:10 cristidan94