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
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 (positionAsInt) AsBoolean
set the current selection in the drawer NOTE: This will trigger onDrawerItemSelected without a view! position: the position to select
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
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:
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
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
StickyFooterAsandroid.view.View [read only]
get the StickyFooter View if set else NULL
StickyFooterSelectionAtPositionAsInt [write only]
set the current selection in the footer of the drawer NOTE: This will trigger onDrawerItemSelected without a view!
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).
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
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
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
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
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
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