diff --git a/CHANGELOG.md b/CHANGELOG.md index 88554922..dfa9d47f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 98534c49..4b2de39a 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/build.gradle b/build.gradle index 04a00f2e..5e41d5bf 100644 --- a/build.gradle +++ b/build.gradle @@ -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' } } diff --git a/docs/CUSTOMIZATION_BUILDER.md b/docs/CUSTOMIZATION_BUILDER.md index 01621101..0b18dbab 100644 --- a/docs/CUSTOMIZATION_BUILDER.md +++ b/docs/CUSTOMIZATION_BUILDER.md @@ -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(); ``` @@ -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. \ No newline at end of file +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. \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index f0e5a24d..d8a96caa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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