Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ActionBarDrawerToggle.Delegate\n\nadded in [version 24.1.0](/topic/libraries/support-library/revisions) \nbelongs to Maven artifact com.android.support:appcompat-v7:28.0.0-alpha1 \n\nActionBarDrawerToggle.Delegate\n==============================\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](/jetpack/androidx) which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class\n| mappings](/jetpack/androidx/migrate/class-mappings).\n\n\n`\npublic\nstatic\n\n\ninterface\nActionBarDrawerToggle.Delegate\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------------------|\n| android.support.v7.app.ActionBarDrawerToggle.Delegate |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[Context](https://developer.android.com/reference/android/content/Context.html) | ` `[getActionBarThemedContext](/reference/android/support/v7/app/ActionBarDrawerToggle.Delegate#getActionBarThemedContext())`() ` Returns the context of ActionBar |\n| ` abstract `[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) | ` `[getThemeUpIndicator](/reference/android/support/v7/app/ActionBarDrawerToggle.Delegate#getThemeUpIndicator())`() ` Returns the drawable to be set as up button when DrawerToggle is disabled |\n| ` abstract boolean` | ` `[isNavigationVisible](/reference/android/support/v7/app/ActionBarDrawerToggle.Delegate#isNavigationVisible())`() ` Returns whether navigation icon is visible or not. |\n| ` abstract void` | ` `[setActionBarDescription](/reference/android/support/v7/app/ActionBarDrawerToggle.Delegate#setActionBarDescription(int))`(int contentDescRes) ` Set the Action Bar's up indicator content description. |\n| ` abstract void` | ` `[setActionBarUpIndicator](/reference/android/support/v7/app/ActionBarDrawerToggle.Delegate#setActionBarUpIndicator(android.graphics.drawable.Drawable, int))`(`[Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html)` upDrawable, int contentDescRes) ` Set the Action Bar's up indicator drawable and content description. |\n\nPublic methods\n--------------\n\n### getActionBarThemedContext\n\nadded in [version 24.1.0](/topic/libraries/support-library/revisions) \n\n```\nContext getActionBarThemedContext ()\n```\n\nReturns the context of ActionBar\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------------------------------------------------|--------|\n| [Context](https://developer.android.com/reference/android/content/Context.html) | \u003cbr /\u003e |\n\n### getThemeUpIndicator\n\nadded in [version 24.1.0](/topic/libraries/support-library/revisions) \n\n```\nDrawable getThemeUpIndicator ()\n```\n\nReturns the drawable to be set as up button when DrawerToggle is disabled\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------------------------------------------------------------|--------|\n| [Drawable](https://developer.android.com/reference/android/graphics/drawable/Drawable.html) | \u003cbr /\u003e |\n\n### isNavigationVisible\n\nadded in [version 24.1.0](/topic/libraries/support-library/revisions) \n\n```\nboolean isNavigationVisible ()\n```\n\nReturns whether navigation icon is visible or not.\nUsed to print warning messages in case developer forgets to set displayHomeAsUp to true\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n### setActionBarDescription\n\nadded in [version 24.1.0](/topic/libraries/support-library/revisions) \n\n```\nvoid setActionBarDescription (int contentDescRes)\n```\n\nSet the Action Bar's up indicator content description.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------------|--------------------------------------------|\n| `contentDescRes` | `int`: - Content description to set \u003cbr /\u003e |\n\n### setActionBarUpIndicator\n\nadded in [version 24.1.0](/topic/libraries/support-library/revisions) \n\n```\nvoid setActionBarUpIndicator (Drawable upDrawable, \n int contentDescRes)\n```\n\nSet the Action Bar's up indicator drawable and content description.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------------|------------------------------------------------------|\n| `upDrawable` | `Drawable`: - Drawable to set as up indicator \u003cbr /\u003e |\n| `contentDescRes` | `int`: - Content description to set \u003cbr /\u003e |\n\n-\n\n Interfaces\n ----------\n\n - [ActionBar.OnMenuVisibilityListener](/reference/android/support/v7/app/ActionBar.OnMenuVisibilityListener)\n - [ActionBar.OnNavigationListener](/reference/android/support/v7/app/ActionBar.OnNavigationListener)\n - [ActionBar.TabListener](/reference/android/support/v7/app/ActionBar.TabListener)\n - [ActionBarDrawerToggle.Delegate](/reference/android/support/v7/app/ActionBarDrawerToggle.Delegate)\n - [ActionBarDrawerToggle.DelegateProvider](/reference/android/support/v7/app/ActionBarDrawerToggle.DelegateProvider)\n - [AppCompatCallback](/reference/android/support/v7/app/AppCompatCallback)\n-\n\n Classes\n -------\n\n - [ActionBar](/reference/android/support/v7/app/ActionBar)\n - [ActionBar.LayoutParams](/reference/android/support/v7/app/ActionBar.LayoutParams)\n - [ActionBar.Tab](/reference/android/support/v7/app/ActionBar.Tab)\n - [ActionBarDrawerToggle](/reference/android/support/v7/app/ActionBarDrawerToggle)\n - [AlertDialog](/reference/android/support/v7/app/AlertDialog)\n - [AlertDialog.Builder](/reference/android/support/v7/app/AlertDialog.Builder)\n - [AppCompatActivity](/reference/android/support/v7/app/AppCompatActivity)\n - [AppCompatDelegate](/reference/android/support/v7/app/AppCompatDelegate)\n - [AppCompatDialog](/reference/android/support/v7/app/AppCompatDialog)\n - [AppCompatDialogFragment](/reference/android/support/v7/app/AppCompatDialogFragment)\n - [AppCompatViewInflater](/reference/android/support/v7/app/AppCompatViewInflater)\n - [MediaRouteActionProvider](/reference/android/support/v7/app/MediaRouteActionProvider)\n - [MediaRouteButton](/reference/android/support/v7/app/MediaRouteButton)\n - [MediaRouteChooserDialog](/reference/android/support/v7/app/MediaRouteChooserDialog)\n - [MediaRouteChooserDialogFragment](/reference/android/support/v7/app/MediaRouteChooserDialogFragment)\n - [MediaRouteControllerDialog](/reference/android/support/v7/app/MediaRouteControllerDialog)\n - [MediaRouteControllerDialogFragment](/reference/android/support/v7/app/MediaRouteControllerDialogFragment)\n - [MediaRouteDialogFactory](/reference/android/support/v7/app/MediaRouteDialogFactory)\n - [MediaRouteDiscoveryFragment](/reference/android/support/v7/app/MediaRouteDiscoveryFragment)"]]