public class ActionShader extends ActionBase
ActionBase.Interpolator, ActionBase.PartParam, ActionBase.RepeatMode, ActionBase.Scope, ActionBase.Type
mAnimationConfig, mDuration, mFillAfter, mFillBefore, mId, mInterpolatorType, mIsStream, mPartParam, mRepeatCount, mRepeatMode, mScope, mStartOffset, mTargetId, mTimelineIn, mTimelineOut, mType
Constructor and Description |
---|
ActionShader() |
Modifier and Type | Method and Description |
---|---|
void |
setAnimationConfig(java.lang.String animationConfig)
Defines custom animations with the specified animation configuration.
|
void |
setShader(java.lang.String aVertexFunction,
java.lang.String aFragmentFunction) |
equals, getAnimationConfig, getDuration, getDuration, getId, getResId, getStartTime, getStartTime, getTargetId, getTimelineIn, getTimelineOut, getType, isStream, setDuration, setDuration, setFillAfter, setFillBefore, setId, setInterpolatorType, setIsStream, setPartParam, setRepeatCount, setRepeatMode, setResId, setScope, setStartOffset, setStartTime, setStartTime, setTargetId, setTimelineIn, setTimelineOut, setType
public void setShader(java.lang.String aVertexFunction, java.lang.String aFragmentFunction)
public void setAnimationConfig(java.lang.String animationConfig)
ActionBase
Defines custom animations with the specified animation configuration. Allows you to create custom animations at random points in time to achieve different transition speeds. The animation configuration must be a string representation of semicolon-separated key-value pairs. The key indicates the point in time and the value can hold one or two values depending on the animation type. One value is needed for animations such as rotation while two comma-separated values are needed for animations such as transition and scaling. Separate the key and value in a key-value pair with a colon. Examples: rotation: "0.0:0.123;0.1:0.245;0.3:0.798" translation: "0.0:0.234,1.47;0.1:2.3,4.565;0.2:3.45,6.78"
setAnimationConfig
in class ActionBase
animationConfig
- The animation configuration.