ActionBarDrawerToggle.Delegate

interface ActionBarDrawerToggle.Delegate


Summary

Public functions

Context!

Returns the context of ActionBar

Drawable!

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

Boolean

Returns whether navigation icon is visible or not.

Unit

Set the Action Bar's up indicator content description.

Unit
setActionBarUpIndicator(
    upDrawable: Drawable!,
    contentDescRes: @StringRes Int
)

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

Public functions

getActionBarThemedContext

Added in 1.1.0
fun getActionBarThemedContext(): Context!

Returns the context of ActionBar

getThemeUpIndicator

Added in 1.1.0
fun getThemeUpIndicator(): Drawable!

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

isNavigationVisible

Added in 1.1.0
fun isNavigationVisible(): Boolean

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
fun setActionBarDescription(contentDescRes: @StringRes Int): Unit

Set the Action Bar's up indicator content description.

Parameters
contentDescRes: @StringRes Int

- Content description to set

setActionBarUpIndicator

Added in 1.1.0
fun setActionBarUpIndicator(
    upDrawable: Drawable!,
    contentDescRes: @StringRes Int
): Unit

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

Parameters
upDrawable: Drawable!

- Drawable to set as up indicator

contentDescRes: @StringRes Int

- Content description to set