Skip to content

Commit

Permalink
Release 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
balysv committed Oct 12, 2014
1 parent b78f397 commit 77525b5
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
----------------------------

Expand Down
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
```


Expand All @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 77525b5

Please sign in to comment.