Skip to content Skip to sidebar Skip to footer

Android Calendar View

I'm pretty new to Android development and I'm looking for a means of including calendar in my Android application, but I'm striking out pretty bad when googling. Is there any way

Solution 1:

I wrote Caldroid library (https://github.com/roomorama/Caldroid) that is simple to setup and have many features such as setup min/max date, disabled dates, select date range, swipe to change month, fully localized, support rotation properly etc. It's easy to customize the look and feel. Just to share if someone might find it useful :)

Solution 2:

I tried android-CalendarView, Caldroid and later switched to android-times-square which has this improvements:

  • Much faster switching to other months due to vertical scrolling (no pagination which responds slow in Caldroid)
  • Indicators, highlighted dates (at least in this fork for android)
  • iOS version available with the same look and feel
  • looks cleaner than the android version because months are clearly separated

    enter image description here

Just like Caldroid it is a part of a productive app.

Solution 3:

AFAIK, there are no other way than implement your own calendar. So... what you would have to do is using a GridLayout with 7 columns and create a custom BaseAdapter to display data correctly.

Solution 4:

Android now provides three ways to incorporate calendars in your app.

  1. Calendar view for picking dates and such.

  2. Calendar provider can be accessed to add and remove events from the OS calendar.

  3. Calendar intents allow you to provide a calendar without having to get extra permissions or deal with databases.

Solution 5:

This library seems really nice and with a more modern UI (Material Design) :

https://github.com/prolificinteractive/material-calendarview

You just have to import it with gradle:

compile'com.prolificinteractive:material-calendarview:1.4.0'

And add it in your layout:

<com.prolificinteractive.materialcalendarview.MaterialCalendarView
xmlns:app="http://schemas.android.com/apk/res-auto"android:id="@+id/calendarView"android:layout_width="match_parent"android:layout_height="wrap_content"app:mcv_showOtherDates="all"app:mcv_selectionColor="#00F"
/>

enter image description here

Post a Comment for "Android Calendar View"