public abstract static class ToolbarManager.NavigationManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
mAnimationDuration |
protected NavigationDrawerDrawable |
mNavigationIcon |
protected boolean |
mNavigationVisible |
protected Toolbar |
mToolbar |
| Constructor and Description |
|---|
NavigationManager(NavigationDrawerDrawable navigationIcon,
Toolbar toolbar) |
| Modifier and Type | Method and Description |
|---|---|
protected android.view.animation.Interpolator |
getInterpolator(boolean in) |
abstract boolean |
isBackState()
Check if current state of navigation icon is back state or not.
|
boolean |
isNavigationVisible() |
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.
|
void |
setNavigationVisible(boolean visible,
boolean animation) |
protected NavigationDrawerDrawable mNavigationIcon
protected Toolbar mToolbar
protected boolean mNavigationVisible
protected long mAnimationDuration
public NavigationManager(NavigationDrawerDrawable navigationIcon, Toolbar toolbar)
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.public boolean isNavigationVisible()
public void setNavigationVisible(boolean visible,
boolean animation)
protected android.view.animation.Interpolator getInterpolator(boolean in)