Skip to content

DayS/CalendarView

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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