Skip to content

Most visited

Recently visited

navigation
added in version 24.1.0
belongs to Maven artifact com.android.support:appcompat-v7:27.0.0

ActionBarDrawerToggle.Delegate

public static interface ActionBarDrawerToggle.Delegate

android.support.v7.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

added in version 24.1.0
Context getActionBarThemedContext ()

Returns the context of ActionBar

Returns
Context

getThemeUpIndicator

added in version 24.1.0
Drawable getThemeUpIndicator ()

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

Returns
Drawable

isNavigationVisible

added in version 24.1.0
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

added in version 24.1.0
void setActionBarDescription (int contentDescRes)

Set the Action Bar's up indicator content description.

Parameters
contentDescRes int: - Content description to set

setActionBarUpIndicator

added in version 24.1.0
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

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)