Press on the image to return to the main documentation page.
MSMaterialDrawer
Written by thedesolatesoul
List of types:
MSAccountHeaderBuilder
MSActivityUtils
MSIconicDrawable
MSMaterialDrawer
MSMaterialDrawerBuilder
MSPrimaryDrawerItem
MSProfile
MSSecondaryDrawerItem
MSAccountHeaderBuilder
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Events:
ProfileChanged(Profile as MSProfile)
ProfileClicked(Profile as MSProfile)
Members:
addProfiles
(
profiles
()
As
com
.
mikepenz
.
materialdrawer
.
model
.
interfaces
.
IProfile
)
As
MSAccountHeaderBuilder
build
As
com
.
mikepenz
.
materialdrawer
.
accountswitcher
.
AccountHeader
.
Result
Initialize
(
eventName
As
String
)
IsInitialized
As
Boolean
withAccountHeader
(
accountHeader
As
android
.
view
.
View
)
As
MSAccountHeaderBuilder
withAlternativeProfileHeaderSwitching
(
alternativeProfileHeaderSwitching
As
Boolean
)
As
MSAccountHeaderBuilder
withCompactStyle
(
compactStyle
As
Boolean
)
As
MSAccountHeaderBuilder
withDrawer
(
drawer
As
com
.
mikepenz
.
materialdrawer
.
Drawer
.
Result
)
As
MSAccountHeaderBuilder
withHeaderBackground
(
headerBackground
As
android
.
graphics
.
drawable
.
Drawable
)
As
MSAccountHeaderBuilder
withHeaderBackgroundScaleType
(
headerBackgroundScaleType
As
android
.
widget
.
ImageView
.
ScaleType
)
As
MSAccountHeaderBuilder
withHeightDp
(
heightDp
As
Int
)
As
MSAccountHeaderBuilder
withOnAccountHeaderListener
(
onAccountHeaderListener
As
com
.
mikepenz
.
materialdrawer
.
accountswitcher
.
AccountHeader
.
OnAccountHeaderListener
)
As
MSAccountHeaderBuilder
withOnAccountHeaderSelectionViewClickListener
(
onAccountHeaderSelectionViewClickListener
As
com
.
mikepenz
.
materialdrawer
.
accountswitcher
.
AccountHeader
.
OnAccountHeaderSelectionViewClickListener
)
As
MSAccountHeaderBuilder
withProfile
(
profile
As
com
.
mikepenz
.
materialdrawer
.
model
.
interfaces
.
IProfile
)
As
MSAccountHeaderBuilder
withProfileImagesClickable
(
profileImagesClickable
As
Boolean
)
As
MSAccountHeaderBuilder
withProfileImagesVisible
(
profileImagesVisible
As
Boolean
)
As
MSAccountHeaderBuilder
withProfiles
(
profiles
As
java
.
util
.
ArrayList
)
As
MSAccountHeaderBuilder
withSelectionFirstLine
(
selectionFirstLine
As
String
)
As
MSAccountHeaderBuilder
withSelectionFistLineShown
(
selectionFirstLineShown
As
Boolean
)
As
MSAccountHeaderBuilder
withSelectionListEnabled
(
selectionListEnabled
As
Boolean
)
As
MSAccountHeaderBuilder
withSelectionListEnabledForSingleProfile
(
selectionListEnabledForSingleProfile
As
Boolean
)
As
MSAccountHeaderBuilder
withSelectionSecondLine
(
selectionSecondLine
As
String
)
As
MSAccountHeaderBuilder
withSelectionSecondLineShown
(
selectionSecondLineShown
As
Boolean
)
As
MSAccountHeaderBuilder
withTextColor
(
textColor
As
Int
)
As
MSAccountHeaderBuilder
withThreeSmallProfileImages
(
threeSmallProfileImages
As
Boolean
)
As
MSAccountHeaderBuilder
withTranslucentStatusBar
(
translucentStatusBar
As
Boolean
)
As
MSAccountHeaderBuilder
Members description:
addProfiles
(
profiles
()
As
com
.
mikepenz
.
materialdrawer
.
model
.
interfaces
.
IProfile
)
As
MSAccountHeaderBuilder
add single ore more DrawerItems to the Drawer
profiles:
Return type: @return:
build
As
com
.
mikepenz
.
materialdrawer
.
accountswitcher
.
AccountHeader
.
Result
Initialize
(
eventName
As
String
)
IsInitialized
As
Boolean
withAccountHeader
(
accountHeader
As
android
.
view
.
View
)
As
MSAccountHeaderBuilder
You can pass a custom view for the drawer lib. note this requires the same structure as the drawer.xml
accountHeader:
Return type: @return:
withAlternativeProfileHeaderSwitching
(
alternativeProfileHeaderSwitching
As
Boolean
)
As
MSAccountHeaderBuilder
enable the alternative profile header switching
alternativeProfileHeaderSwitching:
Return type: @return:
withCompactStyle
(
compactStyle
As
Boolean
)
As
MSAccountHeaderBuilder
Defines if we should use the compact style for the header.
compactStyle:
Return type: @return:
withDrawer
(
drawer
As
com
.
mikepenz
.
materialdrawer
.
Drawer
.
Result
)
As
MSAccountHeaderBuilder
drawer:
Return type: @return:
withHeaderBackground
(
headerBackground
As
android
.
graphics
.
drawable
.
Drawable
)
As
MSAccountHeaderBuilder
set the background for the slider as color
headerBackground:
Return type: @return:
withHeaderBackgroundScaleType
(
headerBackgroundScaleType
As
android
.
widget
.
ImageView
.
ScaleType
)
As
MSAccountHeaderBuilder
define the ScaleType for the header background
headerBackgroundScaleType:
Return type: @return:
withHeightDp
(
heightDp
As
Int
)
As
MSAccountHeaderBuilder
set the height for the header
heightDp:
Return type: @return:
withOnAccountHeaderListener
(
onAccountHeaderListener
As
com
.
mikepenz
.
materialdrawer
.
accountswitcher
.
AccountHeader
.
OnAccountHeaderListener
)
As
MSAccountHeaderBuilder
add a listener for the accountHeader
onAccountHeaderListener:
Return type: @return:
withOnAccountHeaderSelectionViewClickListener
(
onAccountHeaderSelectionViewClickListener
As
com
.
mikepenz
.
materialdrawer
.
accountswitcher
.
AccountHeader
.
OnAccountHeaderSelectionViewClickListener
)
As
MSAccountHeaderBuilder
set a onSelection listener for the selection box
onAccountHeaderSelectionViewClickListener:
Return type: @return:
withProfile
(
profile
As
com
.
mikepenz
.
materialdrawer
.
model
.
interfaces
.
IProfile
)
As
MSAccountHeaderBuilder
withProfileImagesClickable
(
profileImagesClickable
As
Boolean
)
As
MSAccountHeaderBuilder
enable or disable the profile images to be clickable
profileImagesClickable:
Return type: @return:
withProfileImagesVisible
(
profileImagesVisible
As
Boolean
)
As
MSAccountHeaderBuilder
define if the profile images in the header are shown or not
profileImagesVisible:
Return type: @return:
withProfiles
(
profiles
As
java
.
util
.
ArrayList
)
As
MSAccountHeaderBuilder
set the arrayList of DrawerItems for the drawer
profiles:
Return type: @return:
withSelectionFirstLine
(
selectionFirstLine
As
String
)
As
MSAccountHeaderBuilder
set this to define the first line in the selection area if there is no profile
note this will block any values from profiles!
selectionFirstLine:
Return type: @return:
withSelectionFistLineShown
(
selectionFirstLineShown
As
Boolean
)
As
MSAccountHeaderBuilder
set this to false if you want to hide the first line of the selection box in the header (first line would be the name)
selectionFirstLineShown:
Return type: @return:
withSelectionListEnabled
(
selectionListEnabled
As
Boolean
)
As
MSAccountHeaderBuilder
enable or disable the selection list
selectionListEnabled:
Return type: @return:
withSelectionListEnabledForSingleProfile
(
selectionListEnabledForSingleProfile
As
Boolean
)
As
MSAccountHeaderBuilder
enable or disable the selection list if there is only a single profile
selectionListEnabledForSingleProfile:
Return type: @return:
withSelectionSecondLine
(
selectionSecondLine
As
String
)
As
MSAccountHeaderBuilder
set this to define the second line in the selection area if there is no profile
note this will block any values from profiles!
selectionSecondLine:
Return type: @return:
withSelectionSecondLineShown
(
selectionSecondLineShown
As
Boolean
)
As
MSAccountHeaderBuilder
set this to false if you want to hide the second line of the selection box in the header (second line would be the e-mail)
selectionSecondLineShown:
Return type: @return:
withTextColor
(
textColor
As
Int
)
As
MSAccountHeaderBuilder
set the background for the slider as color
textColor:
Return type: @return:
withThreeSmallProfileImages
(
threeSmallProfileImages
As
Boolean
)
As
MSAccountHeaderBuilder
enable the extended profile icon view with 3 small header images instead of two
threeSmallProfileImages:
Return type: @return:
withTranslucentStatusBar
(
translucentStatusBar
As
Boolean
)
As
MSAccountHeaderBuilder
Set or disable this if you use a translucent statusbar
translucentStatusBar:
Return type: @return:
MSActivityUtils
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Events:
None
Members:
Members description:
MSIconicDrawable
Events:
None
Members:
actionBarSize
Alpha
As
Int
BackgroundColor
As
Int
[write
only]
Color
As
Int
[write
only]
Drawable
As
android
.
graphics
.
drawable
.
Drawable
[read
only]
Initialize
(
icon
As
String
)
As
android
.
graphics
.
drawable
.
Drawable
ListDrawables
(
typeface
As
String
)
As
List
paddingDp
(
iconPadding
As
Int
)
sizeDp
(
size
As
Int
)
Members description:
actionBarSize
Alpha
As
Int
BackgroundColor
As
Int
[write
only]
Color
As
Int
[write
only]
Drawable
As
android
.
graphics
.
drawable
.
Drawable
[read
only]
Initialize
(
icon
As
String
)
As
android
.
graphics
.
drawable
.
Drawable
ListDrawables
(
typeface
As
String
)
As
List
paddingDp
(
iconPadding
As
Int
)
sizeDp
(
size
As
Int
)
MSMaterialDrawer
Events:
None
Members:
CloseDrawer
GetFooter
As
android
.
view
.
View
GetHeader
As
android
.
view
.
View
getPositionFromIdentifier
(
identifier
As
Int
)
As
Int
IsDrawerOpen
As
Boolean
IsInitialized
As
Boolean
OpenDrawer
Selection
As
Int
SelectionByIdentifier
As
Int
[write
only]
updateBadge
(
position
As
Int
,
badge
As
String
)
updateIcon
(
position
As
Int
,
icon
As
android
.
graphics
.
drawable
.
Drawable
)
updateName
(
position
As
Int
,
name
As
String
)
Members description:
CloseDrawer
GetFooter
As
android
.
view
.
View
GetHeader
As
android
.
view
.
View
getPositionFromIdentifier
(
identifier
As
Int
)
As
Int
IsDrawerOpen
As
Boolean
IsInitialized
As
Boolean
OpenDrawer
Selection
As
Int
SelectionByIdentifier
As
Int
[write
only]
updateBadge
(
position
As
Int
,
badge
As
String
)
updateIcon
(
position
As
Int
,
icon
As
android
.
graphics
.
drawable
.
Drawable
)
updateName
(
position
As
Int
,
name
As
String
)
MSMaterialDrawerBuilder
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
Events:
Opened
Closed
Slide(SlideOffset as Float)
ItemLongClick(Position as Int, Identifier as Int)
ItemClick(Position as Int, Identifier as Int)
Members:
AddDividerItem
As
MSMaterialDrawerBuilder
AddPrimaryDrawerItem
(
name
As
String
,
icon
As
android
.
graphics
.
drawable
.
Drawable
,
selectedIcon
As
android
.
graphics
.
drawable
.
Drawable
,
badge
As
String
,
enabled
As
Boolean
,
identifier
As
Int
,
description
As
String
)
As
MSMaterialDrawerBuilder
AddSecondaryDrawerItem
(
name
As
String
,
icon
As
android
.
graphics
.
drawable
.
Drawable
,
selectedIcon
As
android
.
graphics
.
drawable
.
Drawable
,
badge
As
String
,
enabled
As
Boolean
,
identifier
As
Int
)
As
MSMaterialDrawerBuilder
AddSectionDrawerItem
(
name
As
String
,
divider
As
Boolean
)
As
MSMaterialDrawerBuilder
Build
As
MSMaterialDrawer
Initialize
(
eventName
As
String
)
IsInitialized
As
Boolean
withAccountHeader
(
accountHeader
As
com
.
mikepenz
.
materialdrawer
.
accountswitcher
.
AccountHeader
.
Result
)
As
MSMaterialDrawerBuilder
withActionbarToggle
(
toggle
As
Boolean
)
As
MSMaterialDrawerBuilder
withActionbarToggleAnimated
(
actionBarDrawerToggleAnimated
As
Boolean
)
As
MSMaterialDrawerBuilder
withCloseOnClick
(
closeOnClick
As
Boolean
)
As
MSMaterialDrawerBuilder
withDisplayBelowToolbar
(
displayBelowToolbar
As
Boolean
)
As
MSMaterialDrawerBuilder
withDrawerGravity
(
gravity
As
Int
)
As
MSMaterialDrawerBuilder
withDrawerWidthDp
(
drawerWidthDp
As
Int
)
As
MSMaterialDrawerBuilder
withFooter
(
footerView
As
android
.
view
.
View
,
width
As
Int
,
height
As
Int
)
As
MSMaterialDrawerBuilder
withHeader
(
headerView
As
android
.
view
.
View
,
width
As
Int
,
height
As
Int
)
As
MSMaterialDrawerBuilder
withHeaderClickable
(
headerClickable
As
Boolean
)
As
MSMaterialDrawerBuilder
withHeaderDivider
(
enable
As
Boolean
)
As
MSMaterialDrawerBuilder
withSelectedItem
(
Position
As
Int
)
As
MSMaterialDrawerBuilder
withToolbar
(
toolbar
As
android
.
support
.
v7
.
widget
.
Toolbar
)
As
MSMaterialDrawerBuilder
withTransluscentStatusbar
(
translucentStatusBar
As
Boolean
)
As
MSMaterialDrawerBuilder
Members description:
AddDividerItem
As
MSMaterialDrawerBuilder
AddPrimaryDrawerItem
(
name
As
String
,
icon
As
android
.
graphics
.
drawable
.
Drawable
,
selectedIcon
As
android
.
graphics
.
drawable
.
Drawable
,
badge
As
String
,
enabled
As
Boolean
,
identifier
As
Int
,
description
As
String
)
As
MSMaterialDrawerBuilder
AddSecondaryDrawerItem
(
name
As
String
,
icon
As
android
.
graphics
.
drawable
.
Drawable
,
selectedIcon
As
android
.
graphics
.
drawable
.
Drawable
,
badge
As
String
,
enabled
As
Boolean
,
identifier
As
Int
)
As
MSMaterialDrawerBuilder
AddSectionDrawerItem
(
name
As
String
,
divider
As
Boolean
)
As
MSMaterialDrawerBuilder
Build
As
MSMaterialDrawer
Initialize
(
eventName
As
String
)
IsInitialized
As
Boolean
withAccountHeader
(
accountHeader
As
com
.
mikepenz
.
materialdrawer
.
accountswitcher
.
AccountHeader
.
Result
)
As
MSMaterialDrawerBuilder
withActionbarToggle
(
toggle
As
Boolean
)
As
MSMaterialDrawerBuilder
withActionbarToggleAnimated
(
actionBarDrawerToggleAnimated
As
Boolean
)
As
MSMaterialDrawerBuilder
withCloseOnClick
(
closeOnClick
As
Boolean
)
As
MSMaterialDrawerBuilder
withDisplayBelowToolbar
(
displayBelowToolbar
As
Boolean
)
As
MSMaterialDrawerBuilder
withDrawerGravity
(
gravity
As
Int
)
As
MSMaterialDrawerBuilder
withDrawerWidthDp
(
drawerWidthDp
As
Int
)
As
MSMaterialDrawerBuilder
withFooter
(
footerView
As
android
.
view
.
View
,
width
As
Int
,
height
As
Int
)
As
MSMaterialDrawerBuilder
withHeader
(
headerView
As
android
.
view
.
View
,
width
As
Int
,
height
As
Int
)
As
MSMaterialDrawerBuilder
withHeaderClickable
(
headerClickable
As
Boolean
)
As
MSMaterialDrawerBuilder
withHeaderDivider
(
enable
As
Boolean
)
As
MSMaterialDrawerBuilder
withSelectedItem
(
Position
As
Int
)
As
MSMaterialDrawerBuilder
withToolbar
(
toolbar
As
android
.
support
.
v7
.
widget
.
Toolbar
)
As
MSMaterialDrawerBuilder
withTransluscentStatusbar
(
translucentStatusBar
As
Boolean
)
As
MSMaterialDrawerBuilder
MSPrimaryDrawerItem
Events:
None
Members:
Badge
As
String
Description
As
String
Enabled
As
Boolean
[write
only]
Icon
As
android
.
graphics
.
drawable
.
Drawable
Identifier
As
Int
Initialize
isEnabled
As
Boolean
IsInitialized
As
Boolean
Name
As
String
Tag
As
Object
Type
As
String
[read
only]
Members description:
Badge
As
String
Description
As
String
Enabled
As
Boolean
[write
only]
Icon
As
android
.
graphics
.
drawable
.
Drawable
Identifier
As
Int
Initialize
isEnabled
As
Boolean
IsInitialized
As
Boolean
Name
As
String
Tag
As
Object
Type
As
String
[read
only]
MSProfile
Events:
None
Members:
Email
As
String
Icon
As
android
.
graphics
.
drawable
.
Drawable
IconUri
As
android
.
net
.
Uri
[read
only]
Identifier
As
Int
isSelectable
As
Boolean
Name
As
String
setSelectable
(
selectable
As
Boolean
)
As
MSProfile
withEmail
(
email
As
String
)
As
MSProfile
withIcon
(
icon
As
android
.
graphics
.
drawable
.
Drawable
)
As
MSProfile
withIdentifier
(
identifier
As
Int
)
As
MSProfile
withName
(
name
As
String
)
As
MSProfile
withSelectable
(
selectable
As
Boolean
)
As
MSProfile
Members description:
Email
As
String
Icon
As
android
.
graphics
.
drawable
.
Drawable
IconUri
As
android
.
net
.
Uri
[read
only]
Identifier
As
Int
isSelectable
As
Boolean
Name
As
String
setSelectable
(
selectable
As
Boolean
)
As
MSProfile
withEmail
(
email
As
String
)
As
MSProfile
withIcon
(
icon
As
android
.
graphics
.
drawable
.
Drawable
)
As
MSProfile
withIdentifier
(
identifier
As
Int
)
As
MSProfile
withName
(
name
As
String
)
As
MSProfile
withSelectable
(
selectable
As
Boolean
)
As
MSProfile
MSSecondaryDrawerItem
Events:
None
Members:
Badge
As
String
Enabled
As
Boolean
[write
only]
Icon
As
android
.
graphics
.
drawable
.
Drawable
Identifier
As
Int
Initialize
isEnabled
As
Boolean
IsInitialized
As
Boolean
Name
As
String
Tag
As
Object
Type
As
String
[read
only]
Members description:
Badge
As
String
Enabled
As
Boolean
[write
only]
Icon
As
android
.
graphics
.
drawable
.
Drawable
Identifier
As
Int
Initialize
isEnabled
As
Boolean
IsInitialized
As
Boolean
Name
As
String
Tag
As
Object
Type
As
String
[read
only]
Top