CalendarView

CalendarView

项目地址:sickmartian/CalendarView CalendarView

简介:Calendar View Library

更多:作者   提 Bug   官网   

标签:

 

A Month and a Week view group to present data.

Features:

  • Customizable colors and text sizes
  • Overflow mark below the day when the views don't fit
  • First day of the week can be set to Sunday, Saturday or Monday

Screenshots

CalendarView CalendarView

Add to your project using gradle

compile 'com.sickmartian.calendarview:calendarview:1.0.0'

Customizable properties at a glance

  <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"/>