public interface MaterialMenu
MaterialMenuDrawable| 限定符和类型 | 方法和说明 |
|---|---|
void |
animatePressedState(MaterialMenuDrawable.IconState state)
Animate icon to given state and draw touch circle
|
void |
animateState(MaterialMenuDrawable.IconState state)
Animate icon to given state.
|
MaterialMenuDrawable |
getDrawable() |
MaterialMenuDrawable.IconState |
getState()
Return current icon state
|
void |
setColor(int color)
Set color of icon
|
void |
setInterpolator(android.view.animation.Interpolator interpolator)
Set interpolator for transformation animations
|
void |
setPressedDuration(int duration)
Set duration of pressed state circle animation
|
void |
setRTLEnabled(boolean rtlEnabled)
Enable RTL layout.
|
void |
setState(MaterialMenuDrawable.IconState state)
Change icon without animation
|
void |
setTransformationDuration(int duration)
Set duration of transformation animations
|
void |
setTransformationOffset(MaterialMenuDrawable.AnimationState animationState,
float value)
Manually set a transformation value for an
MaterialMenuDrawable.AnimationState |
void setState(MaterialMenuDrawable.IconState state)
state - new icon stateMaterialMenuDrawable.IconState getState()
void animateState(MaterialMenuDrawable.IconState state)
state - new icon statevoid animatePressedState(MaterialMenuDrawable.IconState state)
state - new icon statevoid setColor(int color)
color - new icon colorvoid setTransformationDuration(int duration)
duration - new animation durationvoid setPressedDuration(int duration)
duration - new animation durationvoid setInterpolator(android.view.animation.Interpolator interpolator)
interpolator - new interpolatorvoid setRTLEnabled(boolean rtlEnabled)
rtlEnabled - true to enable RTL layoutvoid setTransformationOffset(MaterialMenuDrawable.AnimationState animationState, float value)
MaterialMenuDrawable.AnimationStateanimationState - state to set value invalue - between MaterialMenuDrawable.TRANSFORMATION_START and
MaterialMenuDrawable.TRANSFORMATION_END.MaterialMenuDrawable getDrawable()
MaterialMenuDrawable to be used for the menu