All Projects → chenyongci → Android Week Calendar

chenyongci / Android Week Calendar

android可自定义日历方案,支持农历、自定义日历控件、排班、左右滑动、周月切换、跳转到指定日期等功能

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android Week Calendar

Peppy Calendarview
Simple and fast Material Design calendar view for Android.
Stars: ✭ 30 (-83.87%)
Mutual labels:  calendar, calendar-view
Kotlin Agendacalendarview
Android calendar library provides easy to use widget with events
Stars: ✭ 81 (-56.45%)
Mutual labels:  calendar, calendar-view
Calendarview
Android上一个优雅、万能自定义UI、仿iOS、支持垂直、水平方向切换、支持周视图、自定义周起始、性能高效的日历控件,支持热插拔实现的UI定制!支持标记、自定义颜色、农历、自定义月视图各种显示模式等。Canvas绘制,速度快、占用内存低,你真的想不到日历居然还可以如此优雅!An elegant, highly customized and high-performance Calendar Widget on Android.
Stars: ✭ 7,998 (+4200%)
Mutual labels:  calendar, calendar-view
Xamarin.plugin.calendar
Calendar plugin for Xamarin.Forms
Stars: ✭ 159 (-14.52%)
Mutual labels:  calendar, calendar-view
Flutterweekview
Displays a highly customizable week view (or day view) which is able to display events, to be scrolled, to be zoomed-in & out and a lot more !
Stars: ✭ 130 (-30.11%)
Mutual labels:  calendar, calendar-view
Mbcalendarkit
An open source calendar framework for iOS, with support for customization, IBDesignable, Autolayout, and more.
Stars: ✭ 561 (+201.61%)
Mutual labels:  calendar, calendar-view
Calendarview2
Calendar view for Android. Pretty.
Stars: ✭ 72 (-61.29%)
Mutual labels:  calendar, calendar-view
Cadar
Android solution which represents month and list calendar views.
Stars: ✭ 360 (+93.55%)
Mutual labels:  calendar, calendar-view
Aircalendarview
Airbnb APP CalendarView
Stars: ✭ 96 (-48.39%)
Mutual labels:  calendar, calendar-view
Swift Week View
An iOS calendar library for displaying calendar events in a week view.
Stars: ✭ 88 (-52.69%)
Mutual labels:  calendar, calendar-view
Crunchycalendar
A beautiful material calendar with endless scroll, range selection and a lot more!
Stars: ✭ 465 (+150%)
Mutual labels:  calendar, calendar-view
Calendar Ios
Calendar View
Stars: ✭ 154 (-17.2%)
Mutual labels:  calendar, calendar-view
Calendarview
An Easy to Use Calendar for iOS (Swift 5.0)
Stars: ✭ 429 (+130.65%)
Mutual labels:  calendar, calendar-view
Table calendar
Highly customizable, feature-packed Flutter Calendar with gestures, animations and multiple formats
Stars: ✭ 897 (+382.26%)
Mutual labels:  calendar, calendar-view
Material Calendar View
📅 Material Design Calendar compatible with API 11+
Stars: ✭ 360 (+93.55%)
Mutual labels:  calendar, calendar-view
Yycalendar
Simple and Clear Calendar
Stars: ✭ 46 (-75.27%)
Mutual labels:  calendar, calendar-view
Android Week View
Android Week View is an android library to display calendars (week view or day view) within the app. It supports custom styling.
Stars: ✭ 3,347 (+1699.46%)
Mutual labels:  calendar, calendar-view
Cvcalendar
A custom visual calendar for iOS 8+ written in Swift (>= 4.0).
Stars: ✭ 3,435 (+1746.77%)
Mutual labels:  calendar, calendar-view
Recyclercalendarandroid
A simple DIY library to generate your own custom Calendar View using RecyclerView, written in Kotlin
Stars: ✭ 83 (-55.38%)
Mutual labels:  calendar, calendar-view
Timetable
📅 Customizable flutter calendar widget including day and week views
Stars: ✭ 140 (-24.73%)
Mutual labels:  calendar, calendar-view

主要特性

  • 设置自定义日期角标
  • 农历切换
  • 左右滑动切换上下周月,上下滑动切换周月模式
  • 抽屉式周月切换效果
  • 标记指定日期(marker)
  • 跳转到指定日期

预览图片

使用方法

在layout中使用:

<com.android.calendarlibrary.CollapseCalendarView
        android:id="@+id/calendar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

使用此方法初始化日历标记数据

mManager = new CalendarManager(LocalDate.now(),
                CalendarManager.State.MONTH,
                LocalDate.now().withYear(100),
                LocalDate.now().plusYears(100));
calendarView.init(mManager);

使用方法设置日历数据

是否显示农历

calendarView.showChinaDay(true);

回到今天

calendarView.changeDate(LocalDate.now().toString());

周月切换

 // TODO Auto-generated method stub
mManager.toggleView();
calendarView.populateLayout();

班排

calendarView.setArrayData(json);
calendarView.populateLayout();

使用方法添加上相关监听

月份切换监听器

mManager.setMonthChangeListener(new OnMonthChangeListener() {
       @Override
      public void monthChange(String month, LocalDate mSelected) {
      // TODO Auto-generated method stub
      //Toast.makeText(MainActivity.this, month, Toast.LENGTH_SHORT).show();
      }
});

日期选中监听器

calendarView.setDateSelectListener(new OnDateSelect() {
       @Override
       public void onDateSelected(LocalDate date) {
       // Toast.makeText(MainActivity.this, date.toString(), Toast.LENGTH_SHORT).show();
       }
});

APK

安装 apk 文件预览效果,或者通过下面二维码去下载安装:

DEMO下载二维码

感谢

android-collapse-calendar-view

License

Copyright 2018 chenyongci

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].