Skip to content

truefedex/android-date-picker

Repository files navigation

android-date-picker

Simple lightweight Calendar Picker view and Calendar Numbers view for Android. Supports API levels >= 10.

CalendarPickerView:

Demo

CalendarNumbersView (with custom colors):

Demo

Build Status

Usage

  1. Add compile 'com.phlox.widget:android-date-picker:0.2.1' to your gradle dependencies.
  2. Add CalendarPickerView into your layouts or view hierarchy.
  3. Set a DateSelectionListener and wait for events.

Example:

<com.phlox.datepick.CalendarPickerView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/view" />

or

<com.phlox.datepick.CalendarNumbersView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/view"
    android:background="#000"
    app:fontSize="20sp"
    app:textColor="#fff"
    app:cellBackgroundColor="#0"
    app:cellSelectionBackgroundColor="#958"
    app:selectionTextColor="#000"
    app:cellDayNamesCellTextColor="#fff"
    app:cellDayNamesCellBackgroundColor="#111"
    app:cellPadding="5dp"
    app:inactiveTextColor="#888"/>

About

Simple Date Picker widget for Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages