Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yannecer authored Sep 21, 2017
1 parent 2f41e3d commit 5115ec5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# NCalendar
一款仿miui日历,月视图,周视图滑动切换,时间从1901-01-01到2099-12-31

支持农历,节假日,指示圆点,默认视图,周的第一天等
支持农历,节假日,指示圆点,默认视图,周的第一天设置等


## 效果图
Expand All @@ -15,7 +15,7 @@ http://fir.im/7lv4

#### Gradle
```
compile 'com.necer.ncalendar:ncalendar:2.3.0'
compile 'com.necer.ncalendar:ncalendar:2.3.1'
```
##### 注意:ncalendar:1.0.x 的日历不能升级到 2.x.x,ncalendar:2.x.x是全新的日历

Expand Down Expand Up @@ -65,7 +65,9 @@ ncalendar.setOnCalendarChangedListener(new OnCalendarChangedListener() {

##### 2、跳转日期
```
ncalendar.setDate(int year, int month, int day);
参数为 yyyy-MM-dd 格式的日期
ncalendar.setDate("2017-12-31");
```
##### 3、回到今天
```
Expand Down Expand Up @@ -124,6 +126,12 @@ app:firstDayOfWeek="Monday"
| defaultCalendar|NCalendar日历默认视图|
| firstDayOfWeek|每周第一天是周日还是周一|
| duration|自动折叠时间|
| isShowHoliday|是否显示节假日|
| holidayColor|节假日“休”字颜色|
| workdayColor|工作日日“班”字颜色|
| pointSize|指示圆点大小|
| pointColor|指示圆点颜色|



### 联系我加qq :619008099
Expand Down

0 comments on commit 5115ec5

Please sign in to comment.