IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    CalendarView——Android日历视图控件

    summer发表于 2017-02-08 01:06:31
    love 0
    CalendarView是一个开源的Android日历视图控件,能够把月和星期整合起来一起显示数据。
     2017020801
    特性:
    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"/>
    类库地址:https://github.com/sickmartian/CalendarView


沪ICP备19023445号-2号
友情链接