Repository navigation
v5.0.0
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_SCREENflag, depend on thefitsSystemWindowsfeature - no longer inflate an additional
ScrimInsetsFrameLayoutbut use theDrawerLayoutas 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
inttolongas the internal adapter (FastAdapter) useslongto identify items (as theAdapterdoes) - v5.0.0 no longer sets the
FULL_SCREENflag to get the drawer below theStatusBarit now uses thefitsSystemWindowseverywhere. This should improve compatiblity with a lot of things like theCoordinatorLayoutand should also improve compatiblity with future Android updates - removed the following methods:
- DrawerUIUtils.getScreenWidth -> moved to UIUtils from the
Materializelibrary - DrawerBuilder.withTranslucentStatusBarProgrammatically -> no longer necessary as we now depend on the
fitsSystemWindowsflag StatusBarColorcan now be set via theDrawer.getDrawerLayout().setStatusBarBackgroundColor(color)- DrawerBuilder.keyboardSupportEnabled ->
KeyboardUtilshould no longer be necessary
- DrawerUIUtils.getScreenWidth -> moved to UIUtils from the
StatusBaron API < 21 is no longer colored, because of the changed way how we display theDrawerunder theStatusBarDrawerItemschanged. Please take a look at theCustomDrawerItemsfrom the sample or the default ones, to add the changes to yourCustomDrawerItems