public abstract static class ToolbarManager.NavigationManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected NavigationDrawerDrawable |
mNavigationIcon |
protected Toolbar |
mToolbar |
| Constructor and Description |
|---|
ToolbarManager.NavigationManager(NavigationDrawerDrawable navigationIcon,
Toolbar toolbar) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
isBackState()
Check if current state of navigation icon is back state or not.
|
void |
notifyStateChanged()
Notify the current state of navigation icon is changed.
|
void |
notifyStateInvalidated()
Notify the current state of navigation icon is invalid.
|
void |
notifyStateProgressChanged(boolean isBackState,
float progress)
Notify the progress of animation between 2 states changed.
|
abstract void |
onNavigationClick()
Hangle event click navigation icon.
|
protected NavigationDrawerDrawable mNavigationIcon
protected Toolbar mToolbar
public ToolbarManager.NavigationManager(NavigationDrawerDrawable navigationIcon, Toolbar toolbar)
styleId - the style res of navigation icon.public abstract boolean isBackState()
public abstract void onNavigationClick()
public void notifyStateInvalidated()
public void notifyStateChanged()
public void notifyStateProgressChanged(boolean isBackState,
float progress)
isBackState - the current state (the end state of animation) is back state or not.progress - the current progress of animation.