###Upgrade Notes
getCurrentSelection()will now return theidentifierof the current selection ornullgetCurrentSelectedPosition()was added- renamed all
*Footer*methods to*StickyFooter*to prevent confusion
#####Common changes
- depends on the latest
v23support libraries. Those also require you to havecompileSDKVersion 23 - change the
onItemClicklistener toonItemClick(View view, int i, IDrawerItem iDrawerItem) - modify the import of the
AccountHeaderandAccountHeaderBuilderto
import com.mikepenz.materialdrawer.AccountHeader
import com.mikepenz.materialdrawer.AccountHeaderBuilder- the
identifiershould now be set for theDrawerItemsas it is used now as default for all update/modify/.. actions - rename
withCheckable()towithSelectable() - rename
set*methods of theDrawerItemstowith*methods as those were renamed - rename all methods like
setSelection,setFooterSelection,removeItem, ... to*ByPosition(added the ByPosition) - rename all methods like
setSelectionByIdentifier,setFooterSelectionByIdentifier, ... tosetSelection,setFooterSelection(removed the ByIdentifier) - change
updateName,updateIcon,updateBadgethose methods take now anidentifierand the specificHolderobject - all
get*methods of theDrawerItemswill now return aHolderobject for the specific type, making it easier to work with types likeString,StringRes,Color,ColorRes,ColorInt, ..
#####Android-Iconics (icon font)
- the MaterialDrawer now only includes the
coreof the Android-Iconics project - add the fonts you use https://github.com/mikepenz/Android-Iconics#2-choose-your-desired-fonts
- pre MaterialDrawer v4.0.0 following fonts were included
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
ListViewto aRecyclerView - rename methods with
*ListView*to*RecyclerView* - the
IDrawerIteminterface was extended to better reflect aRecyclerViewand to improve performance - added an
AbstractDrawerItemto implement some common methods - see the SectionDrawerItem for an easy example