Skip to content

Latest commit

 

History

History
194 lines (125 loc) · 5.81 KB

CHANGELOG.md

File metadata and controls

194 lines (125 loc) · 5.81 KB

Change Log

Version 2.0.0 (2016-09-13)

Major update

  • Stripping main library classes to bare minimum - MaterialMenuDrawable and MaterialMenuView.
  • Removed all extras packages since ActionBarCompat or ActionBarSherlock are not being maintained for quite a while now. Most usages will be with Toolbar. Integrating the drawable into it will be up to the user of the library (see README or demo).
  • Removed nineoldadroids dependency - reduced method count by 929!
  • Bumped min api version to 14

Version 1.5.5 (2016-09-13)

  • Added app:mm_iconState="enum" attribute to MaterialMenuView that allows setting the initial state of the drawable.

Version 1.5.4 (2015-05-30)

  • Use AppCompatActivity instead of ActionBarActivity for extras-toolbar package
  • BUG FIX: MaterialMenuView visibility is now preserved on SavedState

Version 1.5.3 (2015-05-14)

API break: Circle pressed state is no longer supported.

MaterialMenu.animatePressedState(IconState) is now deprecated and should be replaced by MaterialMenu.animateState(IconState)

MaterialMenu.setPressedDuration(int) has been removed.

Version 1.5.2 (2015-05-14)

Added new API to allow setting icon visibility

Usage:

MaterialMenu.setVisible(boolean visible)

Version 1.5.1 (2015-01-31)

  • Added MaterielMenuIcon support for non-Toolbar ActionBarCompat v21

Usage: MaterialMenuIconCompat in extras-toolbar package

  • Added API to set an animation listener to MaterialMenuDrawable

Usage: MaterialMenu.setAnimationListener(Animator.AnimatorListener)

  • BUG FIX: Draw circle pressed state when switching to the same icon

Version 1.5.0 (2014-11-19)

  • Revamped CHECK and X icons to suit Material design better.

If old icons are required, use material-menu:1.4.0

  • BUG FIX: support all ActionBar Sherlock Activity classes

Version 1.4.0 (2014-10-19)

  • Added EXTRAS: Toolbar support for MaterialMenuIcon.

Usage:

import com.balysv.materialmenu:material-menu-toolbar:1.x.x and use MaterielMenuIconToolbar

  • BUG FIX: left margin fix for Jellybean and ICS devices using MaterialMenuIcon

Version 1.3.1 (2014-10-14)

  • UI fix: Remove up arrow indicator margins when using MaterialMenuIcon since you could see some extra space on the left side of the icon. If a different margin is required, find the 'Home' view of the ActionBar and apply them (example for stock ActionBar) :
View view = activity.getWindow().getDecorView().findViewById(
    resources.getIdentifier("android:id/home", null, null)
);
ViewGroup.MarginLayoutParams params = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
params.leftMargin = someMargin;
  • MaterialMenuBase abstraction improvements

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:

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)

  • BUG FIX: A crash with MaterialMenuView inflation

Version 1.2.3 (2014-10-05)

  • MaterialMenuView now takes padding into account and position MaterialMenuDrawable accordingly

Version 1.2.2 (2014-09-22)

Now:

app:mm_color="color"             
app:mm_transformDuration="integer" 
app:mm_pressedDuration="integer"   
app:mm_scale="integer"            
app:mm_strokeWidth="integer" 

Version 1.2.1 (2014-09-21)

  • BUG FIX: Added ConstantState to MaterialMenuDrawable, so it behaves correctly with Expandable ActionBar items. The implementation is not correct per se cause it doesn't provide a static ConstantState but it does the job.

Version 1.2.0 (2014-09-09)

  • added new attribute Stroke. It adjusts icon paint stroke width for further customisation. Possible values are Stroke.REGULAR, Stroke.THIN and Stroke.EXTRA_THIN

Usage: Provide Stroke value to a constructor or use xml attribute strokeWidth for MaterialMenuView

Version 1.1.3 (2014-09-03)

  • improved CHECK to ARROW animation by adding more motion to the transformation

Version 1.1.2 (2014-08-29)

  • animatePressedState(), animateState() and setState() now cancels running transformation so you can spam the button and result in a correct state.

Version 1.1.1 (2014-08-27)

  • Changed Maven ArtifactId to com.balysv.materialmenu for extras support
  • Added support to API 9 and higher using NineOldAndroids
  • Added EXTRAS: ActionBarCompat and ActionBarSherlock support

Usage:

  • import com.balysv.materialmenu:material-menu-abs:1.1.1 for ActionBarSherlock and use MaterialMenuIconSherlock
  • import com.balysv.materialmenu:material-menu-abc:1.1.1 for ActionBarCompat and use MaterialMenuIconCompat.

Version 1.1.0 (2014-08-26)

  • Added new morphing icon - CHECK

Usage: Use standard API with IconState.CHECK

Version 1.0.0 (2014-07-11)

Initial release.