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(Set the Action Bar's up indicator drawable and content description. |
Public methods
getActionBarThemedContext
abstract Context getActionBarThemedContext()
Returns the context of ActionBar
getThemeUpIndicator
abstract Drawable getThemeUpIndicator()
Returns the drawable to be set as up button when DrawerToggle is disabled
isNavigationVisible
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
abstract void setActionBarDescription(@StringRes int contentDescRes)
Set the Action Bar's up indicator content description.
| Parameters | |
|---|---|
@StringRes int contentDescRes |
- Content description to set |
setActionBarUpIndicator
abstract void setActionBarUpIndicator(
Drawable upDrawable,
@StringRes int contentDescRes
)
Set the Action Bar's up indicator drawable and content description.