diff --git a/CHANGELOG.md b/CHANGELOG.md index a58afdc..cd41073 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,28 @@ Change Log ========== +Version 1.3.0 (2014-10-12) +---------------------------- + +- Added new API to allow manual animation to any IconState. For example when sliding a navigation drawer. + +Usage: +```java +MaterialMenu.setTransformationOffset(AnimationState state, float value) +``` + +where `AnimationState` is one of `BURGER_ARROW, BURGER_X, ARROW_X, ARROW_CHECK, BURGER_CHECK, X_CHECK` +and `value` is between `0` and `2` + +- Added RTL layout support. When enabled, it flips all icons horizontally. + +Usage: Use API `MaterialMenu.setRTLEnabled(boolean enabled)` or set an `xml` attribute `mm_rtlEnabled="boolean"` + +- Added new API to get current IconState. + +Usage: `MaterialMenu.getIconState()` + + Version 1.2.4 (2014-10-07) ---------------------------- diff --git a/README.md b/README.md index 2a6cfc2..76fba24 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ Check for latest versions at [Gradle Please][4] and import depending on ActionBa ```groovy // stock actionBar -compile 'com.balysv.materialmenu:material-menu:1.2.4' +compile 'com.balysv.materialmenu:material-menu:1.3.0' // actionBarCompat -compile 'com.balysv.materialmenu:material-menu-abc:1.2.4' +compile 'com.balysv.materialmenu:material-menu-abc:1.3.0' // actionBarSherlock -compile 'com.balysv.materialmenu:material-menu-abs:1.2.4' +compile 'com.balysv.materialmenu:material-menu-abs:1.3.0' ``` @@ -41,6 +41,7 @@ app:mm_transformDuration="integer" // Transformation animation duration app:mm_pressedDuration="integer" // Pressed circle animation duration app:mm_scale="integer" // Scale factor of drawable app:mm_strokeWidth="integer" // Stroke width of icons (can only be 1, 2 or 3) +app:mm_rtlEnabled="boolean" // Enabled RTL layout support (flips all drawables) ``` ### MaterialMenuIcon @@ -72,6 +73,15 @@ To change the drawable state without animation ```java MaterialMenu.setState(IconState state) ``` + +To animate the drawable manually (i.e. on navigation drawer slide): + +```java +MaterialMenu.setTransformationOffset(AnimationState state, float value) +``` + +where `AnimationState` is one of `BURGER_ARROW, BURGER_X, ARROW_X, ARROW_CHECK, BURGER_CHECK, X_CHECK` +and `value` is between `0` and `2` Customisation @@ -87,6 +97,9 @@ MaterialMenu.setPressedDuration(int duration) // change transformation interpolator MaterialMenu.setInterpolator(Interpolator interpolator) + +// set RTL layout support +MaterialMenu.setRTLEnabled(boolean enabled) ``` ### Action Bar diff --git a/gradle.properties b/gradle.properties index 3287e1a..da345d4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ -VERSION_NAME=1.2.4 -VERSION_CODE=9 +VERSION_NAME=1.3.0 +VERSION_CODE=10 GROUP=com.balysv.materialmenu POM_NAME=Material Menu