Android CalendarView for Showing Events -
i want show calendar events using different colors on date similar default calendar application. don't see such api on default calendar view.
can please direct me on right direction how proceed this? should extend default calendar , add own functionality? or should use 5x5 text boxes pageviewer , fragments?
the built in calendarview widget doesn't expose ability change color of calendar cells in month view. see the source.
you might try following approaches:
extend calendarview , implement ondraw yourself. you'll have reimplement existing drawing behavior, including these 4 methods:
protected void ondraw(canvas canvas) { drawbackground(canvas); drawweeknumbersanddates(canvas); drawweekseparators(canvas); drawselecteddateverticalbars(canvas); }implement own calendarview allows customizing cells. suggest this project place started, since supports custom cells.
Comments
Post a Comment