Skip to content

Commit

Permalink
Release 1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
quentin41500 committed Feb 21, 2017
1 parent c210955 commit 452a118
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
Change Log
==========
Version 1.4.3 *(2017-02-21)*
----------------------------
* New: Added set click listener method for title
* New: Added `setSaveCurrentPosition` builder method to use the current position when switching mode
* Fix: Fixed title update when only year changed
* Fix: Fixed decorator rendering with custom tile dimensions on API Level 21
* Fix: Added missing `dynamicHeightEnabled` save in `onSaveInstanceState()`
* Fix: If we used `match_parent` for the MaterialCalendarView but the size available is not enough, the view was truncated

Version 1.4.2 *(2016-10-10)*
----------------------------
* New: match_parent is now supported by tileSize, tileWidth and tileHeight
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ and feel, rather than 100% parity with the platform's implementation.
Usage
-----

1. Add `compile 'com.prolificinteractive:material-calendarview:1.4.2'` to your dependencies.
1. Add `compile 'com.prolificinteractive:material-calendarview:1.4.3'` to your dependencies.
2. Add `MaterialCalendarView` into your layouts or view hierarchy.
3. Set a `OnDateSelectedListener` or call `MaterialCalendarView.getSelectedDates()` when you need it.

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0-beta3'
classpath 'com.android.tools.build:gradle:2.3.0-beta4'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
}
}
Expand Down
9 changes: 8 additions & 1 deletion docs/CUSTOMIZATION_BUILDER.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ mcv.state().edit()
.setMinimumDate(CalendarDay.from(2016, 4, 3))
.setMaximumDate(CalendarDay.from(2016, 5, 12))
.setCalendarDisplayMode(CalendarMode.WEEKS)
.setSaveCurrentPosition(true)
.commit();
```

Expand Down Expand Up @@ -47,4 +48,10 @@ There are also convenience methods that accept a `Calendar` or a `Date` object a
`MaterialCalendarView` propose two display modes: weekly and monthly. You can set the display mode in your xml using the attribute `mcv_calendarMode` with `month` for monthly mode, or `week` for weekly mode.
You can also use the builder `setCalendarDisplayMode(CalendarMode)` parameter.

It is **important** to note that the `CalendarMode.WEEKS` is still experimental.
It is **important** to note that the `CalendarMode.WEEKS` is still experimental.

### Save current position between week and month mode

`SaveCurrentPosition` is set to false by default. When switching between week and month mode, the view redirect you to the today's date.

When `setSaveCurrentPosition` is set to `true`, the calendar will stay on the current position or last selected date.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# org.gradle.parallel=true

GROUP=com.prolificinteractive
VERSION_NAME=1.4.2
VERSION_CODE=17
VERSION_NAME=1.4.3
VERSION_CODE=18

POM_PACKAGING=aar
POM_NAME=Material CalendarView
Expand Down

0 comments on commit 452a118

Please sign in to comment.