94

GitHub - huanghaibin-dev/CalendarView: Android上一个优雅、高度自定义、性能高效的...

 6 years ago
source link: https://github.com/huanghaibin-dev/CalendarView
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

CalenderView

An elegant CalendarView on Android platform. Freely draw UI with canvas, fast、efficient and low memory. Support month view、 week view、year view、 custom week start、lunar calendar and so on. Hot plug UI customization! You can't think of the calendar can be so elegant!

温馨提醒 Warm tips

Github代码全部开源无限制使用,免费开源最终版本为3.7.1,垂直、水平切换日历、高仿iOS日历等源码不再开源。

The final version of the free and open source part is 3.7.1, the vertical and horizontal switching calendar liked iOS calendar are no longer open source.

screen_recorder.gif

     

screen_recorder_main.gif

     

screen_recorder_flip.gif

simple.jpg

     

range_select.jpg

     

full_calendar.jpg

AndroidStudio v3.5+

support version if using support package

implementation 'com.haibin:calendarview:3.6.8'

Androidx version if using Androidx

implementation 'com.haibin:calendarview:3.7.1'
<dependency>
  <groupId>com.haibin</groupId>
  <artifactId>calendarview</artifactId>
  <version>3.7.0</version>
  <type>pom</type>
</dependency>

How to use?

English Doc

中文使用文档

proguard-rules

-keepclasseswithmembers class * {
    public <init>(android.content.Context);
}

or using this proguard-rules

-keep class your project path.MonthView {
    public <init>(android.content.Context);
}
-keep class your project path.WeekBar {
    public <init>(android.content.Context);
}
-keep class your project path.WeekView {
    public <init>(android.content.Context);
}
-keep class your project path.YearView {
    public <init>(android.content.Context);
}

Effect Preview

main_zh_func.png

     

main_zh_list.png

YearView and Range Style

year_view.png

     

range.png

Beautiful Chinese style

custom_expand.png

     

custom_shrink.png

Meizu mobile phone calendar

meizu_expand.png

     

meizu_shrink.png

Colorful and Full style

full_calendar.png

     

color_expand.png

Progress bar style

progress_expand.png

     

progress_shrink.png

Galaxy style

solar_expand.png

     

solar_shrink.png

Licenses

  • Copyright (C) 2013 huanghaibin_dev [email protected]

  • 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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK