本文整理了Java中android.animation.ObjectAnimator.end()
方法的一些代码示例,展示了ObjectAnimator.end()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ObjectAnimator.end()
方法的具体详情如下:
包路径:android.animation.ObjectAnimator
类名称:ObjectAnimator
方法名:end
暂无
代码示例来源:origin: aa112901/remusic
@Override
public void onClick(View v) {
if (mRotateAnim != null) {
mRotateAnim.end();
mRotateAnim = null;
}
// mHandler.removeCallbacks(mNextRunnable);
// mHandler.postDelayed(mNextRunnable,300);
Message msg = new Message();
msg.what = NEXT_MUSIC;
mPlayHandler.sendMessage(msg);
// MusicPlayer.mNext();
}
});
代码示例来源:origin: aa112901/remusic
private void stopAnim() {
mActiveView = null;
if (mRotateAnim != null) {
mRotateAnim.end();
mRotateAnim = null;
}
if (mNeedleAnim != null) {
mNeedleAnim.end();
mNeedleAnim = null;
}
if (mAnimatorSet != null) {
mAnimatorSet.end();
mAnimatorSet = null;
}
}
代码示例来源:origin: aa112901/remusic
if (mRotateAnim != null) {
mRotateAnim.setFloatValues(0);
mRotateAnim.end();
mRotateAnim = null;
mNeedleAnim.end();
代码示例来源:origin: wangdan/AisenWeiBo
mAnimator.end();
代码示例来源:origin: aa112901/remusic
if (mNeedleAnim != null) {
mNeedleAnim.reverse();
mNeedleAnim.end();
代码示例来源:origin: glomadrian/RoadRunner
@OnClick(R.id.stopButton)
public void stopButtonClick() {
if (infiniteAnimator != null)
infiniteAnimator.end();
}
代码示例来源:origin: NickKJ/WavesView
public void stopWaveAnim() {
if (animator != null)
animator.end();
animator = null;
}
代码示例来源:origin: hencoder/PracticeDraw4
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
animator.end();
}
代码示例来源:origin: hencoder/PracticeDraw4
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
animator.end();
}
代码示例来源:origin: hencoder/PracticeDraw4
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
animator.end();
}
代码示例来源:origin: hencoder/PracticeDraw4
@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
animator.end();
}
代码示例来源:origin: iammert/MaskProgressView
/**
* Pause Animation
*/
public void pause() {
mStatus = Status.PAUSED;
if (Build.VERSION.SDK_INT < 19)
objectAnimatorProgress.end();
else
objectAnimatorProgress.pause();
}
代码示例来源:origin: rockon999/LeanbackLauncher
public void setAnimationEnabled(boolean enabled) {
this.mAnimationEnabled = enabled;
if (!enabled && this.mDimAnimation.isStarted()) {
this.mDimAnimation.end();
}
}
代码示例来源:origin: rockon999/LeanbackLauncher
public void setEnabled(boolean enabled) {
this.mEnabled = enabled;
if (!this.mEnabled && this.mFocusAnimation.isStarted()) {
this.mFocusAnimation.end();
}
}
}
代码示例来源:origin: stackoverflow.com
public static void flip(Context context, View view) {
ObjectAnimator anim = (ObjectAnimator) AnimatorInflater.loadAnimator(
context, R.animator.flip);
anim.setTarget(view);
anim.setDuration(1000);
anim.end();
anim.start();
}
代码示例来源:origin: iammert/MaskProgressView
/**
* Set stop animation values to current position
* Reset progress animation float values.
*/
public void stop() {
mStatus = Status.STOPPED;
objectAnimatorStop.setFloatValues(mCurrentProgressPosition / mWidth, 0.0f);
mCurrentSeconds = 0;
mCurrentProgressPosition = 0.0f;
objectAnimatorProgress.setFloatValues(mCurrentProgressPosition, 1.0f);
objectAnimatorProgress.setDuration(mMaxSeconds * 1000);
objectAnimatorProgress.end();
objectAnimatorStop.start();
}
代码示例来源:origin: upyun/android-push-sdk
private void pushVideo() {
if (isRecording) {
animator.end();
magicEngine.stopRecord();
} else {
animator.start();
magicEngine.startRecord();
}
isRecording = !isRecording;
}
代码示例来源:origin: NickKJ/WavesView
public void startWaveAnim() {
if (animator != null)
animator.end();
animator = ObjectAnimator.ofInt(this, "wavePos", 0, 1920);
animator.setInterpolator(new LinearInterpolator());
animator.setDuration(durMillis);
animator.setRepeatMode(ValueAnimator.RESTART);
animator.setRepeatCount(ValueAnimator.INFINITE);
animator.start();
}
代码示例来源:origin: alexgomes09/SIRIWaveView
public void stopAnimation() {
if (mAmplitudeAnimator != null) {
mAmplitudeAnimator.removeAllListeners();
mAmplitudeAnimator.end();
mAmplitudeAnimator.cancel();
}
}
代码示例来源:origin: MoMoWait/LeanbackLauncher
public void setAnimationsEnabled(boolean enabled) {
this.mAnimationsEnabled = enabled;
if (!(enabled || this.mMetaAnim == null || !this.mMetaAnim.isStarted())) {
this.mMetaAnim.end();
}
this.mFocusAnimator.setEnabled(enabled);
this.mDimmer.setAnimationEnabled(enabled);
}
}
内容来源于网络,如有侵权,请联系作者删除!