Here are the examples of the java api android.animation.ValueAnimator.end() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
111 Examples
19
Source : BaseView.java
with Apache License 2.0
from zyyoona7
with Apache License 2.0
from zyyoona7
/**
* 停止动画
*/
public void stopAnim() {
if (mValueAnimator != null) {
clearAnimation();
mValueAnimator.setRepeatCount(0);
mValueAnimator.cancel();
mValueAnimator.end();
}
}
19
Source : ShrinkButton.java
with Apache License 2.0
from zuoweitan
with Apache License 2.0
from zuoweitan
/**
* Stop all animations including shrinking and progressing.
*/
public void stop() {
if (mShrinkingController != null && mShrinkingController.isRunning()) {
mShrinkingController.end();
mShrinkingController.cancel();
}
if (mProgressingController != null && mProgressingController.isRunning()) {
mProgressingController.end();
mProgressingController.cancel();
}
}
19
Source : RingProgressBar.java
with Apache License 2.0
from yanyiqun001
with Apache License 2.0
from yanyiqun001
public void stopAnimation() {
mAnimator.end();
}
19
Source : YCLrcCustomView.java
with Apache License 2.0
from yangchong211
with Apache License 2.0
from yangchong211
private void endAnimation() {
if (mAnimator != null && mAnimator.isRunning()) {
mAnimator.end();
}
}
19
Source : CircularRingView.java
with Apache License 2.0
from yangchong211
with Apache License 2.0
from yangchong211
public void stopAnim() {
if (valueAnimator != null) {
clearAnimation();
valueAnimator.setRepeatCount(1);
valueAnimator.cancel();
valueAnimator.end();
}
}
19
Source : RotaProgressBar.java
with MIT License
from xugaoxiang
with MIT License
from xugaoxiang
public void endAnimation() {
valueAnimator.end();
valueAnimator.cancel();
}
19
Source : StepView.java
with Apache License 2.0
from shuhart
with Apache License 2.0
from shuhart
private void endAnimation() {
if (animator != null && animator.isRunning()) {
animator.end();
}
}
19
Source : AlipaySuccessView.java
with Apache License 2.0
from REBOOTERS
with Apache License 2.0
from REBOOTERS
public void stop() {
if (null != mCircleAnim) {
mCircleAnim.end();
}
if (null != mLineLeftAnimator) {
mLineLeftAnimator.end();
}
if (null != mLineRightAnimator) {
mLineRightAnimator.end();
}
clearAnimation();
}
19
Source : DrawableWithAnimatedVisibilityChange.java
with Apache License 2.0
from material-components
with Apache License 2.0
from material-components
private void endAnimatorWithoutCallbacks(@NonNull ValueAnimator... animators) {
boolean ignoreCallbacksOrig = ignoreCallbacks;
ignoreCallbacks = true;
for (ValueAnimator animator : animators) {
animator.end();
}
ignoreCallbacks = ignoreCallbacksOrig;
}
19
Source : StateListAnimator.java
with Apache License 2.0
from material-components
with Apache License 2.0
from material-components
/**
* If there is an animation running for a recent state change, ends it.
*
* <p>This causes the animation to replacedign the end value(s) to the View.
*/
public void jumpToCurrentState() {
if (runningAnimator != null) {
runningAnimator.end();
runningAnimator = null;
}
}
19
Source : AnimationProcessor.java
with MIT License
from mancj
with MIT License
from mancj
void endAnimation() {
if (mValueAnimator != null && mValueAnimator.getValues() != null && mValueAnimator.isRunning()) {
mValueAnimator.end();
}
}
19
Source : LVBase.java
with Apache License 2.0
from luckybilly
with Apache License 2.0
from luckybilly
public void stopAnim() {
if (valueAnimator != null) {
clearAnimation();
valueAnimator.setRepeatCount(0);
valueAnimator.cancel();
valueAnimator.end();
if (OnStopAnim() == 0) {
valueAnimator.setRepeatCount(0);
valueAnimator.cancel();
valueAnimator.end();
}
}
}
19
Source : RippleView.java
with Apache License 2.0
from liu-xiao-dong
with Apache License 2.0
from liu-xiao-dong
/**
* 关闭水波纹
*/
public void stopRipple() {
if (mValueAnimator != null) {
mValueAnimator.end();
mChangeRadius = mRadius;
isPlaying = false;
}
}
19
Source : InterruptibleInOutAnimator.java
with GNU General Public License v3.0
from LawnchairLauncher
with GNU General Public License v3.0
from LawnchairLauncher
public void end() {
mAnimator.end();
}
19
Source : InterruptibleInOutAnimator.java
with Apache License 2.0
from Launcher3-dev
with Apache License 2.0
from Launcher3-dev
public void end() {
mAnimator.end();
mDirection = STOPPED;
}
19
Source : ValueAnimSample.java
with Apache License 2.0
from KosmoSakura
with Apache License 2.0
from KosmoSakura
private void clear() {
if (valueAnimator != null && valueAnimator.isRunning()) {
valueAnimator.end();
}
}
19
Source : InstagramRecordProgressBar.java
with Apache License 2.0
from JessYanCoding
with Apache License 2.0
from JessYanCoding
public void stopRecordAnimation() {
if (mValueAnimator != null && mValueAnimator.isRunning()) {
mValueAnimator.end();
}
}
19
Source : MultiBlurActivity.java
with Apache License 2.0
from HokoFly
with Apache License 2.0
from HokoFly
private void endAnimators() {
if (mAnimator != null && mAnimator.isStarted()) {
mAnimator.end();
}
if (mRoundAnimator != null && mRoundAnimator.isStarted()) {
mRoundAnimator.end();
}
}
19
Source : DownloadProgressButton.java
with Apache License 2.0
from hiwhitley
with Apache License 2.0
from hiwhitley
private void stopAnimators() {
if (mAnimators != null) {
for (ValueAnimator animator : mAnimators) {
if (animator != null && animator.isStarted()) {
animator.end();
}
}
}
}
19
Source : GraduallyTextView.java
with Apache License 2.0
from HeYongRui
with Apache License 2.0
from HeYongRui
public void stopLoading() {
isLoading = false;
valueAnimator.end();
valueAnimator.cancel();
isStop = true;
setText(text);
}
19
Source : RxShineButton.java
with Apache License 2.0
from hexingbo
with Apache License 2.0
from hexingbo
public void setCancel() {
setSrcColor(btnColor);
if (shakeAnimator != null) {
shakeAnimator.end();
shakeAnimator.cancel();
}
}
19
Source : HorProBar.java
with Apache License 2.0
from faith-hb
with Apache License 2.0
from faith-hb
/**
* 停止动画
*/
public void stopProgressAnimation() {
if (progressAnimator != null) {
progressAnimator.end();
}
}
19
Source : CircleProgressBarView.java
with Apache License 2.0
from faith-hb
with Apache License 2.0
from faith-hb
public void stopProgressAnimation() {
progressAnimator.end();
}
19
Source : StateListAnimator.java
with Apache License 2.0
from covidsafewatch
with Apache License 2.0
from covidsafewatch
public void jumpToCurrentState() {
ValueAnimator valueAnimator = this.runningAnimator;
if (valueAnimator != null) {
valueAnimator.end();
this.runningAnimator = null;
}
}
19
Source : MainActivity.java
with GNU General Public License v3.0
from CorvetteCole
with GNU General Public License v3.0
from CorvetteCole
private void clearEgg() {
// figure out how to do this
boolean temp = egg;
// if egg is enabled, eggCancel will be false
boolean eggCancel = !egg;
egg = false;
moon.clearAnimation();
for (ValueAnimator colorAnimation : colorAnimations) {
colorAnimation.end();
}
if (eggCancel) {
// moon.setColorFilter(getResources().getColor(R.color.moonPrimary));
}
egg = temp;
}
19
Source : EyelidView.java
with Mozilla Public License 2.0
from clementf2b
with Mozilla Public License 2.0
from clementf2b
public void stopLoading() {
isLoading = false;
valueAnimator.end();
valueAnimator.cancel();
isStop = true;
}
19
Source : PowerfulEditText.java
with Apache License 2.0
from AndroidWJC
with Apache License 2.0
from AndroidWJC
// 结束所有动画
private void endAllAnimator() {
mGoneAnimator.end();
mVisibleAnimator.end();
}
19
Source : HourGlassView.java
with Apache License 2.0
from anastr
with Apache License 2.0
from anastr
/**
* Ends the HourGlreplaced. this will not call
* {@link OnTimeFinish#onFinish()} method on
* its listeners.
*/
public void stop() {
paused = false;
isFinished = true;
animatorStart.end();
flipAnimator.end();
valueAnimator.end();
isFinished = false;
invalidate();
}
19
Source : LoadingDrawable.java
with MIT License
from 7heaven
with MIT License
from 7heaven
public void stopLoading() {
mProgressiveAnimator.end();
performEndAnimation();
}
18
Source : AdidasLoadingView.java
with Apache License 2.0
from zyyoona7
with Apache License 2.0
from zyyoona7
private void stopAnimators() {
if (mAnimators != null) {
for (ValueAnimator animator : mAnimators) {
if (animator != null && animator.isStarted()) {
animator.removeAllUpdateListeners();
animator.end();
}
}
}
}
18
Source : ShrinkButton.java
with Apache License 2.0
from zuoweitan
with Apache License 2.0
from zuoweitan
/**
* Start back-expanding animation.
*/
private void startExpandingAnimation() {
if (!isWindowFocused)
return;
if (mExpandingController == null) {
initExpandingAnimationController();
}
if (mExpandingController.isRunning() || mExpandingController.isStarted()) {
mExpandingController.end();
mExpandingController.cancel();
}
mExpandingController.start();
}
18
Source : ShrinkButton.java
with Apache License 2.0
from zuoweitan
with Apache License 2.0
from zuoweitan
/**
* Start the whole series of animation, include shrinking and progrssing.
*/
public void startWholeAnimation() {
if (animationState > 0 || !isWindowFocused) {
return;
}
// Initial those animation fraction firstly.
initAnimationParameters();
if (mShrinkingController == null || mProgressingController == null) {
initShrinkingAnimationController();
initProgressingAnimationController();
}
if (mShrinkingController.isRunning() || mProgressingController.isRunning()) {
mShrinkingController.end();
mShrinkingController.cancel();
mProgressingController.end();
mProgressingController.cancel();
}
mShrinkingController.start();
}
18
Source : ViewfinderView.java
with MIT License
from yuzhiqiang1993
with MIT License
from yuzhiqiang1993
public void stopAnimator() {
if (valueAnimator != null) {
valueAnimator.end();
valueAnimator.cancel();
valueAnimator = null;
}
}
18
Source : CircularProgressBar.java
with MIT License
from yuriy-budiyev
with MIT License
from yuriy-budiyev
private void endProgressAnimation() {
if (mProgressAnimator.isRunning()) {
mProgressAnimator.end();
}
}
18
Source : ShimmerLayout.java
with Apache License 2.0
from youlookwhat
with Apache License 2.0
from youlookwhat
private void resetShimmering() {
if (maskAnimator != null) {
maskAnimator.end();
maskAnimator.removeAllUpdateListeners();
}
maskAnimator = null;
gradientTexturePaint = null;
isAnimationStarted = false;
releaseBitMaps();
}
18
Source : ShineButton.java
with Apache License 2.0
from xuexiangjys
with Apache License 2.0
from xuexiangjys
public void setCancel() {
setTintColor(mNormalColor);
if (mShakeAnimator != null) {
mShakeAnimator.end();
mShakeAnimator.cancel();
}
}
18
Source : MaterialProgressBarFragment.java
with Apache License 2.0
from xuexiangjys
with Apache License 2.0
from xuexiangjys
@Override
public void onDestroyView() {
mDeterminateCircularProgressAnimator.end();
super.onDestroyView();
}
18
Source : DeterminateCircularFragment.java
with Apache License 2.0
from xuexiangjys
with Apache License 2.0
from xuexiangjys
@Override
public void onDestroyView() {
mPrimaryProgressAnimator.end();
mPrimaryAndSecondaryProgressAnimator.end();
super.onDestroyView();
}
18
Source : LoadingDrawable.java
with GNU General Public License v3.0
from TBog
with GNU General Public License v3.0
from TBog
@Override
public void stop() {
if (mShapeListAnimator != null)
mShapeListAnimator.end();
mPaint.setAntiAlias(false);
invalidateSelf();
}
18
Source : RoundWaveView.java
with The Unlicense
from ssynhtn
with The Unlicense
from ssynhtn
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
if (useAnimation) {
for (ValueAnimator animator : animators) {
animator.end();
}
}
}
18
Source : SkeletonViewGroup.java
with Apache License 2.0
from rasoulmiri
with Apache License 2.0
from rasoulmiri
private void setupFinishingAnimation() {
isAnimationPlay = false;
isCanDraw = false;
isLastLoopAnimation = false;
isCanDrawFinishState = false;
// Remove animation listener
if (valueAnimator != null) {
valueAnimator.removeAllListeners();
valueAnimator.end();
valueAnimator.cancel();
}
// Disable Hold touchEvents from this and children
setHoldTouchEventsFromChildren(false);
// Call finish state in listener
if (skeletonListener != null)
skeletonListener.onFinishAnimation();
}
18
Source : ShapeRipple.java
with Apache License 2.0
from poldz123
with Apache License 2.0
from poldz123
/**
* Stop the {@link #rippleValueAnimator} and clears the {@link #shapeRippleEntries}
*/
void stop() {
if (rippleValueAnimator != null) {
rippleValueAnimator.cancel();
rippleValueAnimator.end();
rippleValueAnimator.removeAllUpdateListeners();
rippleValueAnimator.removeAllListeners();
rippleValueAnimator = null;
}
if (shapeRippleEntries != null) {
shapeRippleEntries.clear();
invalidate();
}
}
18
Source : BallPulseView.java
with Apache License 2.0
from Justson
with Apache License 2.0
from Justson
public void stopAnim() {
if (mAnimators != null) {
for (ValueAnimator animator : mAnimators) {
if (animator != null && animator.isStarted()) {
animator.removeAllUpdateListeners();
animator.end();
}
}
}
setIndicatorColor(normalColor);
}
18
Source : DotsAnimatedDrawable.java
with MIT License
from JMaroz
with MIT License
from JMaroz
/**
* Stops the animation
*/
@Override
public void stop() {
if (!isRunning()) {
return;
}
mRunning = false;
mValueAnimator.end();
}
18
Source : CircularRevealAnimatedDrawable.java
with MIT License
from jbmlaird
with MIT License
from jbmlaird
public void dispose() {
if (mRevealInAnimation != null) {
mRevealInAnimation.end();
mRevealInAnimation.removeAllUpdateListeners();
mRevealInAnimation.cancel();
}
mRevealInAnimation = null;
}
18
Source : CircularAnimatedDrawable.java
with MIT License
from jbmlaird
with MIT License
from jbmlaird
public void dispose() {
if (mValueAnimatorAngle != null) {
mValueAnimatorAngle.end();
mValueAnimatorAngle.removeAllUpdateListeners();
mValueAnimatorAngle.cancel();
}
mValueAnimatorAngle = null;
if (mValueAnimatorSweep != null) {
mValueAnimatorSweep.end();
mValueAnimatorSweep.removeAllUpdateListeners();
mValueAnimatorSweep.cancel();
}
mValueAnimatorSweep = null;
}
18
Source : ControlLayout.java
with Apache License 2.0
from Dsiner
with Apache License 2.0
from Dsiner
private void stopAnim() {
if (mAnimation != null) {
mAnimation.removeUpdateListener(mAnimatorUpdateListener);
mAnimation.end();
}
}
18
Source : BubbleAnimationView.java
with MIT License
from Cleveroad
with MIT License
from Cleveroad
void stopAnimation() {
if (mForwardAnimator.isRunning()) {
mForwardAnimator.end();
}
if (mReverseValueAnimator.isRunning()) {
mReverseValueAnimator.end();
}
}
18
Source : ValueAnimatorCompatImpl.java
with Apache License 2.0
from bufferapp
with Apache License 2.0
from bufferapp
@Override
public void end() {
mValueAnimator.end();
}
18
Source : PlaybackSupportFragment.java
with Apache License 2.0
from androidx
with Apache License 2.0
from androidx
/**
* if first animator is still running, reverse it; otherwise start second animator.
*/
static void reverseFirstOrStartSecond(ValueAnimator first, ValueAnimator second, boolean runAnimation) {
if (first.isStarted()) {
first.reverse();
if (!runAnimation) {
first.end();
}
} else {
second.start();
if (!runAnimation) {
second.end();
}
}
}
See More Examples