Skip to content

DayS/CalendarView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CalendarView

This library is yet another calendar view for Android. It provide a widget to show a single month at a time, so the use with a ViewPager is much easier than showing a whole year in a ScrollView.

Screenshot

Download

This library is not in Maven central yet. However, you can clone this repository, then compile and deploy it in your local repository with the following :

mvn clean install

Then you could use the following maven dependency in your project :

<dependency>
	<groupId>fr.dvilleneuve.calendarview</groupId>
	<artifactId>library</artifactId>
	<version>(latest version)</version>
	<type>apklib</type>
</dependency>

Usage

Include CalendarView in your layout XML as follows :

<fr.dvilleneuve.calendarview.CalendarView
    android:id="@+id/calendarView"
   	android:layout_width="match_parent"
   	android:layout_height="match_parent" />

Then set the current month in your activity :

@Override
public void onCreate(Bundle savedInstanceState) {
	// […]
	calendarView = ((CalendarView) findViewById(id.calendarView));
	calendarView.setCurrentMonth(YearMonth.now());
}

Logs

If verbose logs are not displayed in Eclipse's Logcat view, run the following command in a terminal :

adb shell setprop log.tag.CalendarView VERBOSE

About

A simple CalendarView for displaying a single month with events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages