Simple lightweight Calendar Picker view and Calendar Numbers view for Android. Supports API levels >= 10.
CalendarPickerView:
CalendarNumbersView (with custom colors):
- Add
compile 'com.phlox.widget:android-date-picker:0.2.1'
to your gradle dependencies. - Add
CalendarPickerView
into your layouts or view hierarchy. - 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"/>