public abstract class SubclassableAdditiveViewAnimator<T extends SubclassableAdditiveViewAnimator> extends BaseAdditiveAnimator<T,View>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
mSkipRequestLayout |
protected boolean |
mWithLayer |
mAnimationAccumulator, mAnimatorGroup, mCurrentCustomInterpolator, mCurrentTarget, mParent, mRunningAnimationsManager, sequenceDelay, staggerDelay| Constructor and Description |
|---|
SubclassableAdditiveViewAnimator() |
| Modifier and Type | Method and Description |
|---|---|
T |
alpha(float alpha) |
T |
alphaBy(float alphaBy) |
T |
backgroundColor(int color) |
T |
bottomLeftMarginAlongPath(Path path) |
T |
bottomMargin(int bottomMargin) |
T |
bottomMarginBy(int bottomMarginBy) |
T |
bottomPadding(int bottomPadding) |
T |
bottomPaddingBy(int bottomPaddingBy) |
T |
bottomRightMarginAlongPath(Path path) |
T |
centerX(float centerX) |
T |
centerY(float centerY) |
T |
elevation(int elevation) |
T |
elevationBy(int elevationBy) |
T |
fadeVisibility(int visibility) |
Float |
getCurrentPropertyValue(String propertyName)
Returns the actual value of the animation target with the given name.
|
protected static Float |
getQueuedPropertyValue(String propertyName,
View v)
The distinction between this and
getTargetPropertyValue(String, View) (String)} is important when chaining animations:
When an animation has been then-chained, it is not counted as started, but queued until start() is called. |
static float |
getTargetPropertyValue(Property<View,Float> property,
View v)
The distinction between this and
BaseAdditiveAnimator.getQueuedPropertyValue(String) is important when chaining animations:
When an animation has been then-chained, it is not counted as started, but queued until start() is called. |
static Float |
getTargetPropertyValue(String propertyName,
View v)
The distinction between this and
BaseAdditiveAnimator.getQueuedPropertyValue(String) is important when chaining animations:
When an animation has been then-chained, it is not counted as started, but queued until start() is called. |
T |
height(int height) |
T |
heightBy(int heightBy) |
T |
horizontalMargin(int horizontalMargin) |
T |
horizontalMarginBy(int horizontalMarginBy) |
T |
horizontalPadding(int horizontalPadding) |
T |
horizontalPaddingBy(int horizontalPaddingBy) |
T |
leftMargin(int leftMargin) |
T |
leftMarginBy(int leftMarginBy) |
T |
leftPadding(int leftPadding) |
T |
leftPaddingBy(int leftPaddingBy) |
T |
margin(int margin) |
T |
marginBy(int marginBy) |
void |
onApplyChanges()
This method will be called when the current frame has been calculated.
|
T |
padding(int padding) |
T |
paddingBy(int paddingBy) |
T |
requestLayout()
Manually turns on requesting layout after each frame.
|
T |
rightMargin(int rightMargin) |
T |
rightMarginBy(int rightMarginBy) |
T |
rightPadding(int rightPadding) |
T |
rightPaddingBy(int rightPaddingBy) |
T |
rotation(float rotation) |
T |
rotationBy(float rotationBy) |
T |
rotationX(float rotationX) |
T |
rotationXBy(float rotationXBy) |
T |
rotationY(float rotationY) |
T |
rotationYBy(float rotationYBy) |
T |
scale(float scale) |
T |
scaleBy(float scalesBy) |
T |
scaleX(float scaleX) |
T |
scaleXBy(float scaleXBy) |
T |
scaleY(float scaleY) |
T |
scaleYBy(float scaleYBy) |
T |
scroll(int x,
int y) |
T |
scrollBy(int xBy,
int yBy) |
T |
scrollX(int scrollX) |
T |
scrollXBy(int scrollXBy) |
T |
scrollY(int scrollY) |
T |
scrollYBy(int scrollYBy) |
protected T |
setParent(T other)
Copies all relevant attributes, including (ONLY) current target from `other` to self.
|
T |
size(int size) |
T |
sizeBy(int sizeBy) |
T |
skipRequestLayout()
Deprecated.
|
T |
target(View view)
Sets the current animation target.
|
T |
topLeftMarginAlongPath(Path path) |
T |
topMargin(int topMargin) |
T |
topMarginBy(int topMarginBy) |
T |
topPadding(int topPadding) |
T |
topPaddingBy(int topPaddingBy) |
T |
topRightMarginAlongPath(Path path) |
T |
translationX(float translationX) |
T |
translationXBy(float translationXBy) |
T |
translationXYAlongPath(Path path) |
T |
translationXYRotationAlongPath(Path path) |
T |
translationY(float translationY) |
T |
translationYBy(float translationYBy) |
T |
translationZ(float translationZ) |
T |
translationZBy(float translationZBy) |
T |
verticalMargin(int verticalMargin) |
T |
verticalMarginBy(int verticalMarginBy) |
T |
verticalPadding(int verticalPadding) |
T |
verticalPaddingBy(int verticalPaddingBy) |
T |
visibility(ViewVisibilityAnimation animation) |
T |
width(int width) |
T |
widthBy(int widthBy) |
T |
withLayer()
Activates hardware layers.
|
T |
withoutLayer()
Deactivates hardware layers for the current view and all subsequently added ones.
|
T |
x(float x) |
T |
xBy(float xBy) |
T |
xyAlongPath(Path path) |
T |
xyRotationAlongPath(Path path) |
T |
y(float y) |
T |
yBy(float yBy) |
T |
z(float z) |
T |
zBy(float zBy) |
action, addEndAction, addListener, addPauseListener, addStartAction, addTarget, addUpdateListener, animate, animate, animate, animate, animate, animatePropertiesAlongPath, animateProperty, animateProperty, animatePropertyBy, apply, apply, applyCustomProperties, cancelAnimation, cancelAnimation, cancelAnimation, cancelAnimationsForObject, cancelAnimationsForObjects, cancelAnimationsInCollection, createAnimation, createAnimation, createAnimation, createChildWithDelayAfterParentStart, createChildWithRawDelay, getCurrentTarget, getQueuedPropertyValue, getRunningAnimationsManager, getTargetPropertyValue, getTargetPropertyValue, getTotalDurationInSequence, getValueAnimator, initValueAnimatorIfNeeded, newInstance, property, property, property, runIfParentIsInSameAnimationGroup, self, setDefaultDuration, setDefaultInterpolator, setDelayInSequence, setDuration, setInterpolator, setRepeatCount, setRepeatMode, setsDefaultInterpolator, setStartDelay, start, state, switchDuration, switchInterpolator, switchToDefaultInterpolator, targets, targets, targets, then, thenBeforeEnd, thenDelayAfterEnd, thenWithDelayplaySequentially, playSequentially, playTogether, playTogether, playWithDelayBetweenAnimationsprotected boolean mSkipRequestLayout
protected boolean mWithLayer
public static float getTargetPropertyValue(Property<View,Float> property, View v)
BaseAdditiveAnimator.getQueuedPropertyValue(String) is important when chaining animations:
When an animation has been then-chained, it is not counted as started, but queued until start() is called.public static Float getTargetPropertyValue(String propertyName, View v)
BaseAdditiveAnimator.getQueuedPropertyValue(String) is important when chaining animations:
When an animation has been then-chained, it is not counted as started, but queued until start() is called.protected static Float getQueuedPropertyValue(String propertyName, View v)
getTargetPropertyValue(String, View) (String)} is important when chaining animations:
When an animation has been then-chained, it is not counted as started, but queued until start() is called.public Float getCurrentPropertyValue(String propertyName)
BaseAdditiveAnimatorgetCurrentPropertyValue in class BaseAdditiveAnimator<T extends SubclassableAdditiveViewAnimator,View>public T target(View view)
BaseAdditiveAnimatorBaseAdditiveAnimator.start():
new AdditiveAnimator().target(view1).x(100).target(view2).y(200).start()
If you want to animate the same property of multiple views, use BaseAdditiveAnimator.targets(Object[]) or BaseAdditiveAnimator.targets(List, long)target in class BaseAdditiveAnimator<T extends SubclassableAdditiveViewAnimator,View>protected T setParent(T other)
BaseAdditiveAnimatorsetParent in class BaseAdditiveAnimator<T extends SubclassableAdditiveViewAnimator,View>public void onApplyChanges()
BaseAdditiveAnimatoronApplyChanges in class BaseAdditiveAnimator<T extends SubclassableAdditiveViewAnimator,View>@Deprecated public T skipRequestLayout()
public T requestLayout()
public T withLayer()
public T withoutLayer()
public T fadeVisibility(int visibility)
public T visibility(ViewVisibilityAnimation animation)
public T backgroundColor(int color)
public T scaleX(float scaleX)
public T scaleXBy(float scaleXBy)
public T scaleY(float scaleY)
public T scaleYBy(float scaleYBy)
public T scale(float scale)
public T scaleBy(float scalesBy)
public T translationX(float translationX)
public T translationXBy(float translationXBy)
public T translationY(float translationY)
public T translationYBy(float translationYBy)
public T translationZ(float translationZ)
public T translationZBy(float translationZBy)
public T alpha(float alpha)
public T alphaBy(float alphaBy)
public T rotation(float rotation)
public T rotationBy(float rotationBy)
public T rotationX(float rotationX)
public T rotationXBy(float rotationXBy)
public T rotationY(float rotationY)
public T rotationYBy(float rotationYBy)
public T x(float x)
public T xBy(float xBy)
public T centerX(float centerX)
public T y(float y)
public T yBy(float yBy)
public T centerY(float centerY)
public T z(float z)
public T zBy(float zBy)
public T leftMargin(int leftMargin)
public T leftMarginBy(int leftMarginBy)
public T topMargin(int topMargin)
public T topMarginBy(int topMarginBy)
public T rightMargin(int rightMargin)
public T rightMarginBy(int rightMarginBy)
public T bottomMargin(int bottomMargin)
public T bottomMarginBy(int bottomMarginBy)
public T horizontalMargin(int horizontalMargin)
public T horizontalMarginBy(int horizontalMarginBy)
public T verticalMargin(int verticalMargin)
public T verticalMarginBy(int verticalMarginBy)
public T margin(int margin)
public T marginBy(int marginBy)
public T width(int width)
public T widthBy(int widthBy)
public T height(int height)
public T heightBy(int heightBy)
public T size(int size)
public T sizeBy(int sizeBy)
public T leftPadding(int leftPadding)
public T leftPaddingBy(int leftPaddingBy)
public T topPadding(int topPadding)
public T topPaddingBy(int topPaddingBy)
public T rightPadding(int rightPadding)
public T rightPaddingBy(int rightPaddingBy)
public T bottomPadding(int bottomPadding)
public T bottomPaddingBy(int bottomPaddingBy)
public T horizontalPadding(int horizontalPadding)
public T horizontalPaddingBy(int horizontalPaddingBy)
public T verticalPadding(int verticalPadding)
public T verticalPaddingBy(int verticalPaddingBy)
public T padding(int padding)
public T paddingBy(int paddingBy)
public T scrollX(int scrollX)
public T scrollXBy(int scrollXBy)
public T scrollY(int scrollY)
public T scrollYBy(int scrollYBy)
public T scroll(int x, int y)
public T scrollBy(int xBy, int yBy)
public T elevation(int elevation)
public T elevationBy(int elevationBy)