Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 2.48 KB

File metadata and controls

40 lines (35 loc) · 2.48 KB

###Upgrade Notes

v4.0.0 -> v4.0.2

  • getCurrentSelection() will now return the identifier of the current selection or null
  • getCurrentSelectedPosition() was added
  • renamed all *Footer* methods to *StickyFooter* to prevent confusion

< v4.0.0

#####Common changes

  • depends on the latest v23 support libraries. Those also require you to have compileSDKVersion 23
  • change the onItemClick listener to onItemClick(View view, int i, IDrawerItem iDrawerItem)
  • modify the import of the AccountHeader and AccountHeaderBuilder to
import com.mikepenz.materialdrawer.AccountHeader
import com.mikepenz.materialdrawer.AccountHeaderBuilder
  • the identifier should now be set for the DrawerItems as it is used now as default for all update/modify/.. actions
  • rename withCheckable() to withSelectable()
  • rename set* methods of the DrawerItems to with* methods as those were renamed
  • rename all methods like setSelection, setFooterSelection, removeItem, ... to *ByPosition (added the ByPosition)
  • rename all methods like setSelectionByIdentifier, setFooterSelectionByIdentifier, ... to setSelection, setFooterSelection (removed the ByIdentifier)
  • change updateName, updateIcon, updateBadge those methods take now an identifier and the specific Holder object
  • all get* methods of the DrawerItems will now return a Holder object for the specific type, making it easier to work with types like String, StringRes, Color, ColorRes, ColorInt, ..

#####Android-Iconics (icon font)

compile 'com.mikepenz:google-material-typeface:1.2.0.1@aar' //Google Material Design Icons
compile 'com.mikepenz:fontawesome-typeface:4.4.0.1@aar' //FontAwesome **NOTE:** the packagename changed for this font

#####Advanced usage changes

  • changed the ListView to a RecyclerView
  • rename methods with *ListView* to *RecyclerView*
  • the IDrawerItem interface was extended to better reflect a RecyclerView and to improve performance
  • added an AbstractDrawerItem to implement some common methods
  • see the SectionDrawerItem for an easy example