Releases: balysv/material-menu
Releases · balysv/material-menu
2.0.0
Major update
- Stripping main library classes to bare minimum -
MaterialMenuDrawable
andMaterialMenuView
. - Removed all
extras
packages since ActionBarCompat or ActionBarSherlock are not being maintained
for quite a while now. Most usages will be withToolbar
. 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
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
- 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
1.5.0
1.4.0
1.3.1
- 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
1.3.0
- 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()