public class TransitionMove extends Transition
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
BOTTOM |
Indicates slide-in from the bottom.
|
static int |
LEFT |
Indicates slide-in from the left.
|
static int |
RIGHT |
Indicates slide-in from the right.
|
static int |
TOP |
Indicates slide-in from the top.
|
| 构造器 | 说明 |
|---|---|
TransitionMove() |
Default constructor used to create a
TransitionMove instance. |
TransitionMove(int moveType) |
A constructor used to create a
TransitionMove instance with a specified move type. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
setDuration(float duration) |
已过时。
This change is effective since API version 8. This method is deprecated because the
duration
parameter is an integer and does not need to be represented by a floating point number.
Replaced by setDuration(long). |
void |
setDuration(long duration) |
Sets the duration for this move.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetCurve, setCurveTypepublic static final int BOTTOM
public static final int LEFT
public static final int RIGHT
public static final int TOP
public TransitionMove()
TransitionMove instance.
This instance provides the move effect for component transitions.
public TransitionMove(int moveType)
TransitionMove instance with a specified move type.moveType - Indicates the move type, which can be LEFT, RIGHT,
TOP, or BOTTOM.@Deprecated public void setDuration(float duration)
duration
parameter is an integer and does not need to be represented by a floating point number.
Replaced by setDuration(long).setDuration 在类中 Transitionduration - Indicates the duration to set.public void setDuration(long duration)
setDuration 在类中 Transitionduration - Indicates the duration to set.