MaterialDrawer v5.0.0 - The only thing that changed is everything ;)
library
- removed old adapter from the drawer, and completely switched to the FastAdapter
- all identifier are now
long
(previously they wereint
) - BadgeStyle methods are now fluent
- improved
ProfileDrawerItem
- removed a lot of old code
- improved flexibility
- change to latest
Materialize
- no longer use the
FULL_SCREEN
flag, depend on thefitsSystemWindows
feature - no longer inflate an additional
ScrimInsetsFrameLayout
but use theDrawerLayout
as root now - millions of other changes and improvements
- improved performance
- improved stability
- more features thanks to the
FastAdapter
- multiselect can also be enabled now (via the
FastAdapter
)
sample
- updated all sample activities to reflect changes of the MaterialDrawer v5.0.0
- updated all sample items to fit the new item definition
- added 2 new sample
CustomDrawerItems
- some bugfixes
- improved stability, including better animations
general
- Gradle 2.11
- Android build tools 2.0.0-beta4
- now also on jCenter
MIGRATION
- the identifier was changed from
int
tolong
as the internal adapter (FastAdapter) useslong
to identify items (as theAdapter
does) - v5.0.0 no longer sets the
FULL_SCREEN
flag to get the drawer below theStatusBar
it now uses thefitsSystemWindows
everywhere. This should improve compatiblity with a lot of things like theCoordinatorLayout
and should also improve compatiblity with future Android updates - removed the following methods:
- DrawerUIUtils.getScreenWidth -> moved to UIUtils from the
Materialize
library - DrawerBuilder.withTranslucentStatusBarProgrammatically -> no longer necessary as we now depend on the
fitsSystemWindows
flag StatusBarColor
can now be set via theDrawer.getDrawerLayout().setStatusBarBackgroundColor(color)
- DrawerBuilder.keyboardSupportEnabled ->
KeyboardUtil
should no longer be necessary
- DrawerUIUtils.getScreenWidth -> moved to UIUtils from the
StatusBar
on API < 21 is no longer colored, because of the changed way how we display theDrawer
under theStatusBar
DrawerItems
changed. Please take a look at theCustomDrawerItems
from the sample or the default ones, to add the changes to yourCustomDrawerItems