Android Programming Press on the image to return to the main documentation page.

MaterialDrawer

Written by Mike Penz (Github) / DonManfred (wrapper) / Markus Stipp (wrapper)

List of types:

MDDrawer
MDDrawerBuilder
MDPrimaryDrawerItem

MDDrawer


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  addItem (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem)

  addItemAtPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem, position As Int)

  addItems (drawerItems() As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem)

  addItemsAtPosition (position As Int, drawerItems() As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem)

  addStickyFooterItem (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem)

  addStickyFooterItemAtPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem, position As Int)

  closeDrawer

  CurrentSelectedPosition As Int [read only]

  CurrentSelection As Long [read only]

  CurrentStickyFooterSelectedPosition As Int [read only]

  deselect

  deselect2 (identifier As Long)

  Footer As android.view.View [read only]

  Fullscreen As Boolean [write only]

  getDrawerItem (identifier As Long) As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem

  getDrawerItem2 (tag As Object) As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem

  getPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem) As Int

  getPosition2 (identifier As Long) As Int

  getStickyFooterPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem) As Int

  getStickyFooterPosition2 (identifier As Long) As Int

  Header As android.view.View

  Initialize (d As com.mikepenz.materialdrawer.Drawer)

  isDrawerOpen As Boolean

  IsInitialized As Boolean

  Items As java.util.List [write only]

  MiniDrawer As com.mikepenz.materialdrawer.MiniDrawer [read only]

  openDrawer

  OriginalDrawerItems As java.util.List [read only]

  removeAllItems

  removeAllStickyFooterItems

  removeHeader

  removeItem (identifier As Long)

  removeItemByPosition (position As Int)

  removeItems (identifiers() As Long)

  removeStickyFooterItemAtPosition (position As Int)

  resetDrawerContent

  setHeader2 (view As android.view.View, divider As Boolean)

  setHeader3 (view As android.view.View, padding As Boolean, divider As Boolean)

  setHeader4 (view As android.view.View, padding As Boolean, divider As Boolean, height As Int)

  setItemAtPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem, position As Int)

  setSelection (identifier As Long) As Boolean

  setSelection2 (identifier As Long, fireOnClick As Boolean) As Boolean

  setSelection3 (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem, fireOnClick As Boolean) As Boolean

  setSelectionAtPosition (position As Int) As Boolean

  setSelectionAtPosition2 (position As Int, fireOnClick As Boolean) As Boolean

  setStickyFooterItemAtPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem, position As Int)

  setStickyFooterSelection (identifier As Long, fireOnClick As Boolean)

  setStickyFooterSelectionAtPosition2 (position As Int, fireOnClick As Boolean)

  setToolbar (activity As android.app.Activity, toolbar As android.support.v7.widget.Toolbar)

  setToolbar2 (activity As android.app.Activity, toolbar As android.support.v7.widget.Toolbar, recreateActionBarDrawerToggle As Boolean)

  StickyFooter As android.view.View [read only]

  StickyFooterSelectionAtPosition As Int [write only]

  StickyHeader As android.view.View [read only]

  switchDrawerContent (onDrawerItemClickListener As com.mikepenz.materialdrawer.Drawer.OnDrawerItemClickListener, onDrawerItemLongClickListener As com.mikepenz.materialdrawer.Drawer.OnDrawerItemLongClickListener, drawerItems As java.util.List, drawerSelection As Int)

  switchedDrawerContent As Boolean

  updateBadge (identifier As Long, badge As String)

  updateIcon (identifier As Long, image As com.mikepenz.materialdrawer.holder.ImageHolder)

  updateItem (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem)

  updateItemAtPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem, position As Int)

  updateName (identifier As Long, name As String)

  updateStickyFooterItem (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem)

  updateStickyFooterItemAtPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem, position As Int)

Members description:

addItem (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem)
Add a drawerItem at the end
drawerItem:
addItemAtPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem, position As Int)
Add a drawerItem at a specific position
drawerItem:
position:
addItems (drawerItems() As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem)
add new Items to the current DrawerItem List
drawerItems:
addItemsAtPosition (position As Int, drawerItems() As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem)
add new items to the current DrawerItem list at a specific position
position:
drawerItems:
addStickyFooterItem (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem)
Add a footerDrawerItem at the end
drawerItem:
addStickyFooterItemAtPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem, position As Int)
Add a footerDrawerItem at a specific position
drawerItem:
position:
closeDrawer
close the drawer
CurrentSelectedPosition As Int [read only]
get the current position of the selected drawer element
CurrentSelection As Long [read only]
get the current selected item identifier
CurrentStickyFooterSelectedPosition As Int [read only]
get the current position of the selected sticky footer element
deselect
deselects all selected items
deselect2 (identifier As Long)
deselects the item with the given identifier
identifier: the identifier to search for
Footer As android.view.View [read only]
get the Footer View if set else NULL
Fullscreen As Boolean [write only]
set the insetsFrameLayout to display the content in fullscreen
under the statusBar and navigationBar
getDrawerItem (identifier As Long) As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem
returns the DrawerItem by the given identifier
identifier:
Return type: @return:
getDrawerItem2 (tag As Object) As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem
returns the found drawerItem by the given tag
tag:
Return type: @return:
getPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem) As Int
calculates the position of an drawerItem. searching by it's identifier
drawerItem:
Return type: @return:
getPosition2 (identifier As Long) As Int
calculates the position of an drawerItem. searching by it's identifier
identifier:
Return type: @return:
getStickyFooterPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem) As Int
calculates the position of an drawerItem. searching by it's identifier
drawerItem:
Return type: @return:
getStickyFooterPosition2 (identifier As Long) As Int
calculates the position of an drawerItem inside the footer. searching by it's identfier
identifier:
Return type: @return:
Header As android.view.View
get the Header View if set else NULL
Initialize (d As com.mikepenz.materialdrawer.Drawer)
isDrawerOpen As Boolean
Get the current state of the drawer.
True if the drawer is currently open.
IsInitialized As Boolean
Items As java.util.List [write only]
Replace the current DrawerItems with a new ArrayList of items
MiniDrawer As com.mikepenz.materialdrawer.MiniDrawer [read only]
gets the already generated MiniDrawer or creates a new one
openDrawer
Open the drawer
OriginalDrawerItems As java.util.List [read only]
get the original list of drawerItems
removeAllItems
Removes all items from drawer
removeAllStickyFooterItems
Removes all footerItems from drawer
removeHeader
method to remove the header of the list
removeItem (identifier As Long)
Remove a drawerItem by the identifier
identifier:
removeItemByPosition (position As Int)
Remove a drawerItem at a specific position
position:
removeItems (identifiers() As Long)
remove a list of drawerItems by ther identifiers
identifiers:
removeStickyFooterItemAtPosition (position As Int)
Remove a footerDrawerItem at a specific position
position:
resetDrawerContent
helper method to reset to the original drawerContent
setHeader2 (view As android.view.View, divider As Boolean)
method to replace a previous set header
view:
divider:
setHeader3 (view As android.view.View, padding As Boolean, divider As Boolean)
method to replace a previous set header
view:
padding:
divider:
setHeader4 (view As android.view.View, padding As Boolean, divider As Boolean, height As Int)
method to replace a previous set header
view:
padding:
divider:
height:
setItemAtPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem, position As Int)
Set a drawerItem at a specific position
drawerItem:
position:
setSelection (identifier As Long) As Boolean
set the current selection in the drawer
NOTE: This will trigger onDrawerItemSelected without a view!
identifier: the identifier to search for
setSelection2 (identifier As Long, fireOnClick As Boolean) As Boolean
set the current selection in the drawer
NOTE: This will trigger onDrawerItemSelected without a view if you pass fireOnClick = true;
identifier: the identifier to search for
fireOnClick: true if the click listener should be called
setSelection3 (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem, fireOnClick As Boolean) As Boolean
set the current selection in the drawer
NOTE: This will trigger onDrawerItemSelected without a view if you pass fireOnClick = true;
drawerItem: the drawerItem to select (this requires a set identifier)
fireOnClick: true if the click listener should be called
setSelectionAtPosition (position As Int) As Boolean
set the current selection in the drawer
NOTE: This will trigger onDrawerItemSelected without a view!
position: the position to select
setSelectionAtPosition2 (position As Int, fireOnClick As Boolean) As Boolean
setStickyFooterItemAtPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem, position As Int)
Set a footerDrawerItem at a specific position
drawerItem:
position:
setStickyFooterSelection (identifier As Long, fireOnClick As Boolean)
set the current selection in the footer of the drawer
NOTE: This will trigger onDrawerItemSelected without a view if you pass fireOnClick = true;
identifier: the identifier to search for
fireOnClick: true if the click listener should be called
setStickyFooterSelectionAtPosition2 (position As Int, fireOnClick As Boolean)
set the current selection in the footer of the drawer
NOTE: This will trigger onDrawerItemSelected without a view if you pass fireOnClick = true;
position:
fireOnClick:
setToolbar (activity As android.app.Activity, toolbar As android.support.v7.widget.Toolbar)
Sets the toolbar which should be used in combination with the drawer
This will handle the ActionBarDrawerToggle for you.
Do not set this if you are in a sub activity and want to handle the back arrow on your own
setToolbar2 (activity As android.app.Activity, toolbar As android.support.v7.widget.Toolbar, recreateActionBarDrawerToggle As Boolean)
Sets the toolbar which should be used in combination with the drawer
This will handle the ActionBarDrawerToggle for you.
Do not set this if you are in a sub activity and want to handle the back arrow on your own
StickyFooter As android.view.View [read only]
get the StickyFooter View if set else NULL
StickyFooterSelectionAtPosition As Int [write only]
set the current selection in the footer of the drawer
NOTE: This will trigger onDrawerItemSelected without a view!
StickyHeader As android.view.View [read only]
get the StickyHeader View if set else NULL
switchDrawerContent (onDrawerItemClickListener As com.mikepenz.materialdrawer.Drawer.OnDrawerItemClickListener, onDrawerItemLongClickListener As com.mikepenz.materialdrawer.Drawer.OnDrawerItemLongClickListener, drawerItems As java.util.List, drawerSelection As Int)
method to switch the drawer content to new elements
onDrawerItemClickListener:
drawerItems:
drawerSelection:
switchedDrawerContent As Boolean
information if the current drawer content is switched by alternative content (profileItems)
Return type: @return:
updateBadge (identifier As Long, badge As String)
update the badge for a specific drawerItem
identified by its id
identifier:
badge:
updateIcon (identifier As Long, image As com.mikepenz.materialdrawer.holder.ImageHolder)
update the name for a specific drawerItem
identified by its id
identifier:
image:
updateItem (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem)
update a specific drawer item :D
automatically identified by its id
drawerItem:
updateItemAtPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem, position As Int)
Update a drawerItem at a specific position
drawerItem:
position:
updateName (identifier As Long, name As String)
update the name for a specific drawerItem
identified by its id
identifier:
name:
updateStickyFooterItem (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem)
update a specific footerDrawerItem :D
automatically identified by it's id
drawerItem:
updateStickyFooterItemAtPosition (drawerItem As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem, position As Int)
update a footerDrawerItem at a specific position
drawerItem:
position:

MDDrawerBuilder


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

DrawerOpened()
DrawerClosed()
DrawerSlide(slideOffset As Float)
ItemClick(position As Int, drawerItem As IDrawerItem)

Members:


  addDrawerItems (drawerItems() As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem) As MDDrawerBuilder

  addStickyDrawerItems (stickyDrawerItems() As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem) As MDDrawerBuilder

  build As com.mikepenz.materialdrawer.Drawer

  Initialize (EventName As String)

  IsInitialized As Boolean

  withAccountHeader (accountHeader As com.mikepenz.materialdrawer.AccountHeader) As MDDrawerBuilder

  withAccountHeader2 (accountHeader As com.mikepenz.materialdrawer.AccountHeader, accountHeaderSticky As Boolean) As MDDrawerBuilder

  withActionBarDrawerToggle (actionBarDrawerToggleEnabled As Boolean) As MDDrawerBuilder

  withActionBarDrawerToggleAnimated (actionBarDrawerToggleAnimated As Boolean) As MDDrawerBuilder

  withCloseOnClick (closeOnClick As Boolean) As MDDrawerBuilder

  withCustomView (customView As android.view.View) As MDDrawerBuilder

  withDelayDrawerClickEvent (delayDrawerClickEvent As Int) As MDDrawerBuilder

  withDelayOnDrawerClose (delayOnDrawerClose As Int) As MDDrawerBuilder

  withDisplayBelowStatusBar (displayBelowStatusBar As Boolean) As MDDrawerBuilder

  withDrawerGravity (gravity As Int) As MDDrawerBuilder

  withDrawerWidth (Width As Int) As MDDrawerBuilder

  withFireOnInitialOnClick (fireOnInitialOnClick As Boolean) As MDDrawerBuilder

  withFooter (footerView As android.view.View) As MDDrawerBuilder

  withFooterClickable (footerClickable As Boolean) As MDDrawerBuilder

  withFooterDivider (footerDivider As Boolean) As MDDrawerBuilder

  withFullscreen (fullscreen As Boolean) As MDDrawerBuilder

  withGenerateMiniDrawer (generateMiniDrawer As Boolean) As MDDrawerBuilder

  withHeader (headerView As android.view.View) As MDDrawerBuilder

  withHeaderDivider (headerDivider As Boolean) As MDDrawerBuilder

  withHeaderHeight (Height As Int) As MDDrawerBuilder

  withHeaderPadding (headerPadding As Boolean) As MDDrawerBuilder

  withInnerShadow (innerShadow As Boolean) As MDDrawerBuilder

  withMultiSelect (multiSelect As Boolean) As MDDrawerBuilder

  withScrollToTopAfterClick (scrollToTopAfterClick As Boolean) As MDDrawerBuilder

  withSelectedItem (selectedItemIdentifier As Long) As MDDrawerBuilder

  withSelectedItemByPosition (selectedItemPosition As Int) As MDDrawerBuilder

  withShowDrawerOnFirstLaunch (showDrawerOnFirstLaunch As Boolean) As MDDrawerBuilder

  withSliderBackgroundColor (Color As Int) As MDDrawerBuilder

  withSliderBackgroundDrawable (sliderBackgroundDrawable As android.graphics.drawable.Drawable) As MDDrawerBuilder

  withStickyFooter (stickyFooter As android.view.ViewGroup) As MDDrawerBuilder

  withStickyFooterDivider (stickyFooterDivider As Boolean) As MDDrawerBuilder

  withStickyFooterShadow (stickyFooterShadow As Boolean) As MDDrawerBuilder

  withStickyHeader (stickyHeader As android.view.View) As MDDrawerBuilder

  withStickyHeaderShadow (stickyHeaderShadow As Boolean) As MDDrawerBuilder

  withSystemUIHidden (systemUIHidden As Boolean) As MDDrawerBuilder

  withToolbar (toolbar As android.support.v7.widget.Toolbar) As MDDrawerBuilder

  withTranslucentNavigationBar (translucentNavigationBar As Boolean) As MDDrawerBuilder

  withTranslucentNavigationBarProgrammatically (translucentNavigationBarProgrammatically As Boolean) As MDDrawerBuilder

  withTranslucentStatusBar (translucentStatusBar As Boolean) As MDDrawerBuilder

Members description:

addDrawerItems (drawerItems() As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem) As MDDrawerBuilder
Add a initial DrawerItem or a DrawerItem Array for the Drawer
addStickyDrawerItems (stickyDrawerItems() As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem) As MDDrawerBuilder
Add a initial DrawerItem or a DrawerItem Array for the StickyDrawerFooter
build As com.mikepenz.materialdrawer.Drawer
Build and add the DrawerBuilder to your activity
Initialize (EventName As String)
IsInitialized As Boolean
withAccountHeader (accountHeader As com.mikepenz.materialdrawer.AccountHeader) As MDDrawerBuilder
Add a AccountSwitcherHeader which will be used in this drawer instance.
NOTE: This will overwrite any set headerView.
withAccountHeader2 (accountHeader As com.mikepenz.materialdrawer.AccountHeader, accountHeaderSticky As Boolean) As MDDrawerBuilder
Add a AccountSwitcherHeader which will be used in this drawer instance.
Pass true if it should be sticky NOTE: This will overwrite any set
headerView or stickyHeaderView (depends on the boolean).
withActionBarDrawerToggle (actionBarDrawerToggleEnabled As Boolean) As MDDrawerBuilder
Set this to false if you don't need the included ActionBarDrawerToggle
withActionBarDrawerToggleAnimated (actionBarDrawerToggleAnimated As Boolean) As MDDrawerBuilder
Set this to true if you want the ActionBarDrawerToggle to be animated.
NOTE: This will only work if the built in ActionBarDrawerToggle is used.
Enable it by setting withActionBarDrawerToggle to true
withCloseOnClick (closeOnClick As Boolean) As MDDrawerBuilder
Set this to false if the drawer should stay opened after an item was
clicked
withCustomView (customView As android.view.View) As MDDrawerBuilder
Pass a custom view if you need a completely custom drawer content
withDelayDrawerClickEvent (delayDrawerClickEvent As Int) As MDDrawerBuilder
Define the delay for the drawer click event after a click. This can be used
to improve performance and prevent lag, especially when you switch
fragments inside the listener. This will ignore the boolean value you can
return in the listener, as the listener is called after the drawer was
closed. NOTE: Disable this to pass -1
withDelayOnDrawerClose (delayOnDrawerClose As Int) As MDDrawerBuilder
Define the delay for the drawer close operation after a click. This is a
small trick to improve the speed (and remove lag) if you open a new
activity after a DrawerItem was selected. NOTE: Disable this by passing -1
withDisplayBelowStatusBar (displayBelowStatusBar As Boolean) As MDDrawerBuilder
Sets that the slider of this Drawer should be displayed below the statusBar
even with a translucentStatusBar
withDrawerGravity (gravity As Int) As MDDrawerBuilder
Set the gravity for the drawer. START, LEFT | RIGHT, END
withDrawerWidth (Width As Int) As MDDrawerBuilder
Set the DrawerBuilder width
withFireOnInitialOnClick (fireOnInitialOnClick As Boolean) As MDDrawerBuilder
Set this to true if you love to get an initial onClick event after the
build method is called
withFooter (footerView As android.view.View) As MDDrawerBuilder
Add a footer to the DrawerBuilder ListView. This can be any view
withFooterClickable (footerClickable As Boolean) As MDDrawerBuilder
Set this to true if you want the footer to be clickable
withFooterDivider (footerDivider As Boolean) As MDDrawerBuilder
Set this to false if you don't need the divider above the footer
withFullscreen (fullscreen As Boolean) As MDDrawerBuilder
Set to true if the used theme has a translucent statusBar and navigationBar
and you want to manage the padding on your own.
withGenerateMiniDrawer (generateMiniDrawer As Boolean) As MDDrawerBuilder
define if the Drawer should also generate a MiniDrawer for th
withHeader (headerView As android.view.View) As MDDrawerBuilder
Add a header to the DrawerBuilder ListView. This can be any view
withHeaderDivider (headerDivider As Boolean) As MDDrawerBuilder
Set this to false if you don't need the divider below the header
withHeaderHeight (Height As Int) As MDDrawerBuilder
Sets the header height for the header provided via `withHeader()`
withHeaderPadding (headerPadding As Boolean) As MDDrawerBuilder
Set this to false if you don't need the padding below the header
withInnerShadow (innerShadow As Boolean) As MDDrawerBuilder
sets if the drawer should show an inner shadow or not
withMultiSelect (multiSelect As Boolean) As MDDrawerBuilder
set this to true if you want to enable multiSelect mode inside the drawer.
Note you will have to programmatically deselect if you want to remove all
selections! You can disable this at a later time via
.getAdapter().withMultiSelect(false) You can also modify all other settings
of the FastAdapter via this method
withScrollToTopAfterClick (scrollToTopAfterClick As Boolean) As MDDrawerBuilder
defines if the drawer should scroll to top after click
withSelectedItem (selectedItemIdentifier As Long) As MDDrawerBuilder
Set this to the identifier of the item, you would love to select upon start
withSelectedItemByPosition (selectedItemPosition As Int) As MDDrawerBuilder
Set this to the index of the item, you would love to select upon start
withShowDrawerOnFirstLaunch (showDrawerOnFirstLaunch As Boolean) As MDDrawerBuilder
define if the Drawer is shown on the first launch
withSliderBackgroundColor (Color As Int) As MDDrawerBuilder
Set the background color for the Slider. This is the view containing the
list.
withSliderBackgroundDrawable (sliderBackgroundDrawable As android.graphics.drawable.Drawable) As MDDrawerBuilder
Set the background drawable for the Slider. This is the view containing the
list.
withStickyFooter (stickyFooter As android.view.ViewGroup) As MDDrawerBuilder
Add a sticky footer below the DrawerBuilder ListView. This can be any view
withStickyFooterDivider (stickyFooterDivider As Boolean) As MDDrawerBuilder
Set this to true if you want the divider above the sticky footer
withStickyFooterShadow (stickyFooterShadow As Boolean) As MDDrawerBuilder
Set this to false if you don't want the shadow on top of the sticky footer
withStickyHeader (stickyHeader As android.view.View) As MDDrawerBuilder
Add a sticky header below the DrawerBuilder ListView. This can be any view
withStickyHeaderShadow (stickyHeaderShadow As Boolean) As MDDrawerBuilder
Set this to false if you don't want the shadow below the sticky header
withSystemUIHidden (systemUIHidden As Boolean) As MDDrawerBuilder
Set to true if you use your app in complete fullscreen mode with hidden
statusBar and navigationBar
withToolbar (toolbar As android.support.v7.widget.Toolbar) As MDDrawerBuilder
Sets the toolbar which should be used in combination with the drawer This
will handle the ActionBarDrawerToggle for you. Do not set this if you are
in a sub activity and want to handle the back arrow on your own
withTranslucentNavigationBar (translucentNavigationBar As Boolean) As MDDrawerBuilder
Set to true if you use a translucent NavigationBar
withTranslucentNavigationBarProgrammatically (translucentNavigationBarProgrammatically As Boolean) As MDDrawerBuilder
set this to true if you want a translucent navigation bar.
withTranslucentStatusBar (translucentStatusBar As Boolean) As MDDrawerBuilder
Sets that the view which hosts the DrawerLayout should have a translucent
statusBar. This is true by default, so it's possible to display the drawer
under the statusBar

MDPrimaryDrawerItem


Events:

None

Members:


  Badge As String [read only]

  BadgeStyle As com.mikepenz.materialdrawer.holder.BadgeStyle [read only]

  Description As String [read only]

  DescriptionTextColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]

  DisabledIconColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]

  DisabledTextColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]

  Icon As com.mikepenz.materialdrawer.holder.ImageHolder [read only]

  IconColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]

  Identifier As Long [read only]

  Initialize (EventName As String)

  isEnabled As Boolean

  isExpanded As Boolean

  isIconTinted As Boolean

  IsInitialized As Boolean

  isSelectable As Boolean

  isSelected As Boolean

  LayoutRes As Int [read only]

  Level As Int [read only]

  Name As com.mikepenz.materialdrawer.holder.StringHolder [read only]

  SelectedColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]

  SelectedIcon As com.mikepenz.materialdrawer.holder.ImageHolder [read only]

  SelectedIconColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]

  SelectedTextColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]

  SubItems As java.util.List [read only]

  Tag As Object [read only]

  TextColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]

  Type As Int [read only]

  Typeface As android.graphics.Typeface [read only]

  withBadge (badge As String) As MDPrimaryDrawerItem

  withBadgeStyle (badgeStyle As com.mikepenz.materialdrawer.holder.BadgeStyle) As MDPrimaryDrawerItem

  withDescription (description As String) As MDPrimaryDrawerItem

  withDescriptionTextColor (color As Int) As MDPrimaryDrawerItem

  withDisabledIconColor (disabledIconColor As Int) As MDPrimaryDrawerItem

  withDisabledTextColor (disabledTextColor As Int) As MDPrimaryDrawerItem

  withEnabled (enabled As Boolean) As MDPrimaryDrawerItem

  withIcon (icon As android.graphics.drawable.Drawable) As MDPrimaryDrawerItem

  withIcon2 (icon As com.mikepenz.materialdrawer.holder.ImageHolder) As MDPrimaryDrawerItem

  withIcon3 (icon As String) As MDPrimaryDrawerItem

  withIconColor (iconColor As Int) As MDPrimaryDrawerItem

  withIconTinted (iconTinted As Boolean) As MDPrimaryDrawerItem

  withIconTintingEnabled (iconTintingEnabled As Boolean) As MDPrimaryDrawerItem

  withIdentifier (identifier As Long) As MDPrimaryDrawerItem

  withIsExpanded (expanded As Boolean) As MDPrimaryDrawerItem

  withLevel (level As Int) As MDPrimaryDrawerItem

  withName (name As String) As MDPrimaryDrawerItem

  withSelectable (selectable As Boolean) As MDPrimaryDrawerItem

  withSelectedColor (selectedColor As Int) As MDPrimaryDrawerItem

  withSelectedIcon (selectedIcon As android.graphics.drawable.Drawable) As MDPrimaryDrawerItem

  withSelectedIconColor (selectedIconColor As Int) As MDPrimaryDrawerItem

  withSelectedTextColor (selectedTextColor As Int) As MDPrimaryDrawerItem

  withSetSelected (selected As Boolean) As MDPrimaryDrawerItem

  withSubItems (subItems() As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem) As MDPrimaryDrawerItem

  withSubItems2 (subItems As java.util.List) As MDPrimaryDrawerItem

  withTag (tag As Object) As MDPrimaryDrawerItem

  withTextColor (textColor As Int) As MDPrimaryDrawerItem

  withTintSelectedIcon (iconTinted As Boolean) As MDPrimaryDrawerItem

  withTypeface (typeface As android.graphics.Typeface) As MDPrimaryDrawerItem

Members description:

Badge As String [read only]
BadgeStyle As com.mikepenz.materialdrawer.holder.BadgeStyle [read only]
Description As String [read only]
DescriptionTextColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]
DisabledIconColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]
DisabledTextColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]
Icon As com.mikepenz.materialdrawer.holder.ImageHolder [read only]
IconColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]
Identifier As Long [read only]
returns the identifier of this item
-1 is the default not set state
Initialize (EventName As String)
isEnabled As Boolean

Return type: @return:if this item is enabled
isExpanded As Boolean

Return type: @return:if this item is currently expaneded
isIconTinted As Boolean
IsInitialized As Boolean
isSelectable As Boolean

Return type: @return:if this item is selectable
isSelected As Boolean

Return type: @return:if this item is selected
LayoutRes As Int [read only]
Level As Int [read only]
Name As com.mikepenz.materialdrawer.holder.StringHolder [read only]
SelectedColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]
SelectedIcon As com.mikepenz.materialdrawer.holder.ImageHolder [read only]
SelectedIconColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]
SelectedTextColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]
SubItems As java.util.List [read only]
Tag As Object [read only]
TextColor As com.mikepenz.materialdrawer.holder.ColorHolder [read only]
Type As Int [read only]
Typeface As android.graphics.Typeface [read only]
withBadge (badge As String) As MDPrimaryDrawerItem
withBadgeStyle (badgeStyle As com.mikepenz.materialdrawer.holder.BadgeStyle) As MDPrimaryDrawerItem
withDescription (description As String) As MDPrimaryDrawerItem
withDescriptionTextColor (color As Int) As MDPrimaryDrawerItem
withDisabledIconColor (disabledIconColor As Int) As MDPrimaryDrawerItem
withDisabledTextColor (disabledTextColor As Int) As MDPrimaryDrawerItem
withEnabled (enabled As Boolean) As MDPrimaryDrawerItem
set if this item is enabled
enabled: true if this item is enabled
Return type: @return:
withIcon (icon As android.graphics.drawable.Drawable) As MDPrimaryDrawerItem
withIcon2 (icon As com.mikepenz.materialdrawer.holder.ImageHolder) As MDPrimaryDrawerItem
withIcon3 (icon As String) As MDPrimaryDrawerItem
withIconColor (iconColor As Int) As MDPrimaryDrawerItem
withIconTinted (iconTinted As Boolean) As MDPrimaryDrawerItem
withIconTintingEnabled (iconTintingEnabled As Boolean) As MDPrimaryDrawerItem
will tint the icon with the default (or set) colors
(default and selected state)
withIdentifier (identifier As Long) As MDPrimaryDrawerItem
set the identifier of this item
identifier:
Return type: @return:
withIsExpanded (expanded As Boolean) As MDPrimaryDrawerItem

expanded: defines if this item is now expanded or not
Return type: @return:this
withLevel (level As Int) As MDPrimaryDrawerItem
withName (name As String) As MDPrimaryDrawerItem
withSelectable (selectable As Boolean) As MDPrimaryDrawerItem
set if this item is selectable
selectable: true if this item is selectable
Return type: @return:
withSelectedColor (selectedColor As Int) As MDPrimaryDrawerItem
withSelectedIcon (selectedIcon As android.graphics.drawable.Drawable) As MDPrimaryDrawerItem
withSelectedIconColor (selectedIconColor As Int) As MDPrimaryDrawerItem
withSelectedTextColor (selectedTextColor As Int) As MDPrimaryDrawerItem
withSetSelected (selected As Boolean) As MDPrimaryDrawerItem
set if this item is selected
selected: true if this item is selected
Return type: @return:
withSubItems (subItems() As com.mikepenz.materialdrawer.model.interfaces.IDrawerItem) As MDPrimaryDrawerItem
an array of subItems
subItems:
Return type: @return:
withSubItems2 (subItems As java.util.List) As MDPrimaryDrawerItem
a list of subItems
subItems:
Return type: @return:
withTag (tag As Object) As MDPrimaryDrawerItem
set the tag of this item
object:
Return type: @return:
withTextColor (textColor As Int) As MDPrimaryDrawerItem
withTintSelectedIcon (iconTinted As Boolean) As MDPrimaryDrawerItem
for backwards compatibility - withIconTinted..
iconTinted:
Return type: @return:
withTypeface (typeface As android.graphics.Typeface) As MDPrimaryDrawerItem

Top