public class MaterialMenuIcon extends MaterialMenuBase
MaterialMenuDrawable
as an ActionBar
icon.
In order to preserve default ActionBar icon click state call MaterialMenuBase.setNeverDrawTouch(boolean)
.
Otherwise, adjust your theme to disable pressed background color by setting android:actionBarItemBackground
to null and use android:actionButtonStyle
, android:actionOverflowButtonStyle
to enable other
menu icon backgrounds.
Disables ActionBar Up arrow and replaces default drawable using ActionBar.setIcon(android.graphics.drawable.Drawable)
构造器和说明 |
---|
MaterialMenuIcon(android.app.Activity activity,
int color,
MaterialMenuDrawable.Stroke stroke) |
MaterialMenuIcon(android.app.Activity activity,
int color,
MaterialMenuDrawable.Stroke stroke,
int transformDuration) |
MaterialMenuIcon(android.app.Activity activity,
int color,
MaterialMenuDrawable.Stroke stroke,
int transformDuration,
int pressedDuration) |
限定符和类型 | 方法和说明 |
---|---|
protected android.view.View |
getActionBarHomeView(android.app.Activity activity) |
protected android.view.View |
getActionBarUpView(android.app.Activity activity) |
protected boolean |
providesActionBar() |
protected void |
setActionBarSettings(android.app.Activity activity) |
animatePressedState, animateState, getDrawable, getState, onSaveInstanceState, setColor, setInterpolator, setNeverDrawTouch, setPressedDuration, setRTLEnabled, setState, setTransformationDuration, setTransformationOffset, syncState
public MaterialMenuIcon(android.app.Activity activity, int color, MaterialMenuDrawable.Stroke stroke)
public MaterialMenuIcon(android.app.Activity activity, int color, MaterialMenuDrawable.Stroke stroke, int transformDuration)
public MaterialMenuIcon(android.app.Activity activity, int color, MaterialMenuDrawable.Stroke stroke, int transformDuration, int pressedDuration)
protected android.view.View getActionBarHomeView(android.app.Activity activity)
getActionBarHomeView
在类中 MaterialMenuBase
protected android.view.View getActionBarUpView(android.app.Activity activity)
getActionBarUpView
在类中 MaterialMenuBase
protected boolean providesActionBar()
providesActionBar
在类中 MaterialMenuBase
protected void setActionBarSettings(android.app.Activity activity)
setActionBarSettings
在类中 MaterialMenuBase