CalendarView是一个开源的Android日历视图控件,能够把月和星期整合起来一起显示数据。
特性:
1、自定义样式颜色和文字大小。
2、可以将周六、周日或者周一设置为每周的第一天。
3、Overflow mark below the day when the views don't fit
可定制的属性:
<com.sickmartian.calendarview.MonthView
xmlns:calendar_view="http://schemas.android.com/apk/res-auto"
android:layout_below="@+id/control_container"
calendar_view:textSize="12sp"
calendar_view:activeTextColor="@color/colorPrimaryText"
calendar_view:inactiveTextColor="@color/colorSecondaryText"
calendar_view:activeBackgroundColor="@color/colorCalendarDayBackground"
calendar_view:selectedBackgroundColor="@color/selectedDayBackground"
calendar_view:inactiveBackgroundColor="@color/notThisMonthDayBackground"
calendar_view:currentDayDecorationDrawable="@drawable/current_day_drawable"
calendar_view:currentDayDecorationSize="24dp"
calendar_view:currentDayTextColor="@color/colorInvertedText"
calendar_view:showOverflow="false"
calendar_view:overflowColor="@color/colorPrimary"
calendar_view:overflowHeight="2dp"
calendar_view:separatorColor="@color/colorCalendarDivider"
android:id="@+id/monthView"
android:layout_width="match_parent"
android:layout_height="match_parent"/>