Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
Android 0.0.0 Developer Preview
belongs to Maven artifact androidx.appcompat:appcompat:1.1.0-alpha01

ActionBarDrawerToggle.Delegate

public static interface ActionBarDrawerToggle.Delegate

androidx.appcompat.app.ActionBarDrawerToggle.Delegate


Summary

Public methods

abstract Context getActionBarThemedContext()

Returns the context of ActionBar

abstract Drawable getThemeUpIndicator()

Returns the drawable to be set as up button when DrawerToggle is disabled

abstract boolean isNavigationVisible()

Returns whether navigation icon is visible or not.

abstract void setActionBarDescription(int contentDescRes)

Set the Action Bar's up indicator content description.

abstract void setActionBarUpIndicator(Drawable upDrawable, int contentDescRes)

Set the Action Bar's up indicator drawable and content description.

Public methods

getActionBarThemedContext

public abstract Context getActionBarThemedContext ()

Returns the context of ActionBar

Returns
Context

getThemeUpIndicator

public abstract Drawable getThemeUpIndicator ()

Returns the drawable to be set as up button when DrawerToggle is disabled

Returns
Drawable

isNavigationVisible

public abstract boolean isNavigationVisible ()

Returns whether navigation icon is visible or not. Used to print warning messages in case developer forgets to set displayHomeAsUp to true

Returns
boolean

setActionBarDescription

public abstract void setActionBarDescription (int contentDescRes)

Set the Action Bar's up indicator content description.

Parameters
contentDescRes int: - Content description to set

setActionBarUpIndicator

public abstract void setActionBarUpIndicator (Drawable upDrawable, 
                int contentDescRes)

Set the Action Bar's up indicator drawable and content description.

Parameters
upDrawable Drawable: - Drawable to set as up indicator

contentDescRes int: - Content description to set