github mikepenz/MaterialDrawer v5.0.0

latest releases: v9.0.2, v9.0.1, v9.0.0...
8 years ago

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 were int)
  • 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 the fitsSystemWindows feature
  • no longer inflate an additional ScrimInsetsFrameLayout but use the DrawerLayout 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 to long as the internal adapter (FastAdapter) uses long to identify items (as the Adapter does)
  • v5.0.0 no longer sets the FULL_SCREEN flag to get the drawer below the StatusBar it now uses the fitsSystemWindows everywhere. This should improve compatiblity with a lot of things like the CoordinatorLayout 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 the Drawer.getDrawerLayout().setStatusBarBackgroundColor(color)
    • DrawerBuilder.keyboardSupportEnabled -> KeyboardUtil should no longer be necessary
  • StatusBar on API < 21 is no longer colored, because of the changed way how we display the Drawer under the StatusBar
  • DrawerItems changed. Please take a look at the CustomDrawerItems from the sample or the default ones, to add the changes to your CustomDrawerItems

Don't miss a new MaterialDrawer release

NewReleases is sending notifications on new releases.