Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display events on a Calendar on Android

I want to have a Calendar with a Month view displaying all the days and events on each day. I found CalendarView, but it doesn't really display events on the way I want. I kept researching and checking lots of results, until I came across a entire app that does that called SimpleMobileTools's Simple-Calendar. Here's how they display events on a Month view Calendar, if you didn't understand what I'm looking for yet:

SimpleMobileTools's Simple-Calendar app

Though, their app has way too many features plus it's an entire app. I thought there should be something like a CalendarView (not necessarily native) that I could just plug-and-play adding my events and having it displaying them on a Calendar. I thought this should be a very common need for developers (to have a month view calendar displaying events to their users) but since I've searched so much and found nothing like that, I'm here to ask.

Does anyone knows a simpler way to achieve something like this?

like image 404
leoneboaventura Avatar asked Dec 15 '25 15:12

leoneboaventura


1 Answers

You mean like this https://developer.android.com/reference/android/widget/CalendarView?

<CalendarView
   android:id="@+id/simpleCalendarView"
   android:layout_width="match_parent"
   android:layout_height="match_parent" />

The exact appearance and interaction model of this widget may vary between OS versions and themes (e.g. Holo versus Material), but in general a user can select a date by tapping on it and can scroll or fling the calendar to a desired date.

]([![enter image description here]1

References:

https://abhiandroid.com/ui/calendarview

https://www.journaldev.com/22321/android-calendar-view


Here is the 3rd party library I believe is used in your screenshot:

https://github.com/SimpleMobileTools/Simple-Calendar

It creates a custom view, that potentially you can re-use:

https://github.com/SimpleMobileTools/Simple-Calendar/blob/master/app/src/main/kotlin/com/simplemobiletools/calendar/pro/views/MonthView.kt

Here are some alternatives:

http://applandeo.com/blog/material-calendar-view-customized-calendar-widget-android/

https://github.com/Applandeo/Material-Calendar-View

https://github.com/SimpleMobileTools/Simple-Calendar

like image 138
Blundell Avatar answered Dec 19 '25 05:12

Blundell