Android Example B4Acalendar

Probably not the most elegant way to do this calendar but it is working. It displays 42 days and will "grey out" the days of the previous/next month within the calendar month being displayed. The below pic is what it looks like on my cell with Lollipop.

You need to enable the JavaObject library (I am using version 2.05) in the libs tab of the B4A project.

Leaving it up to you to make sense of it and to adapt/change to suite your purposes (should you have any such need to do so)

Click on the arrow icons to move to the next/previous month.

All done with B4A and a bit of inline Java code

1.gif
 

Attachments

  • B4Acalendar.zip
    31.4 KB · Views: 614
Last edited:

Johan Schoeman

Expert
Licensed User
Longtime User
Some bug fixes to sort out the colors of cells that belongs to the previous/next month of the present month being shown.
 

Attachments

  • B4Acalendar.zip
    31.9 KB · Views: 478
Top