a quick,simple,custom month view
##Preview
- Setup Gradle
dependencies {
compile 'com.tt:calendarpageview:1.0.0'
}
- Like the use of the other widgets.
<com.tt.calendarpageview.CalendarPageView
android:id="@+id/wtf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@color/primary"></com.tt.calendarpageview.CalendarPageView>
One of the aims of this library is to be customizable.
Options available in XML attributes:
Attribute | Type | Description |
---|---|---|
weekTextStyle | style | Set weekday title text style |
todayTextStyle | style | Set today text style |
notCurrentTextStyle | style | Set text style of the day out of current shown month |
dayTextStyle | style | Common day text style |
daySelector | drawable | Day click selector |
Method | Description |
---|---|
setCurrentMonth() | Set the monthView's current month |
selectCal() | Select day |
setOnDaySelectListener() | Set the callback of select day |
Copyright (c) 2015 Kyson
Licensed under the Apache License, Version 2.0