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:

  1. 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); } 
  2. implement own calendarview allows customizing cells. suggest this project place started, since supports custom cells.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -