ActionBarDrawerToggle.Delegate

public interface ActionBarDrawerToggle.Delegate


Summary

Public methods

abstract Context

Returns the context of ActionBar

abstract Drawable

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

abstract boolean

Returns whether navigation icon is visible or not.

abstract void
setActionBarDescription(@StringRes int contentDescRes)

Set the Action Bar's up indicator content description.

abstract void
setActionBarUpIndicator(
    Drawable upDrawable,
    @StringRes int contentDescRes
)

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

Public methods

getActionBarThemedContext

Added in 1.1.0
abstract Context getActionBarThemedContext()

Returns the context of ActionBar

getThemeUpIndicator

Added in 1.1.0
abstract Drawable getThemeUpIndicator()

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

isNavigationVisible

Added in 1.1.0
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

setActionBarDescription

Added in 1.1.0
abstract void setActionBarDescription(@StringRes int contentDescRes)

Set the Action Bar's up indicator content description.

Parameters
@StringRes int contentDescRes

- Content description to set

setActionBarUpIndicator

Added in 1.1.0
abstract void setActionBarUpIndicator(
    Drawable upDrawable,
    @StringRes int contentDescRes
)

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

Parameters
Drawable upDrawable

- Drawable to set as up indicator

@StringRes int contentDescRes

- Content description to set