本文整理了Java中android.view.animation.Animation.reset()
方法的一些代码示例,展示了Animation.reset()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Animation.reset()
方法的具体详情如下:
包路径:android.view.animation.Animation
类名称:Animation
方法名:reset
暂无
代码示例来源:origin: stackoverflow.com
private void finishTask() {
if(blabbla==blablabla){
finish();
runFadeAnimation();
}
}
private void runFadeInAnimation() {
Animation a = AnimationUtils.loadAnimation(this, R.anim.fadein);
a.reset();
LinearLayout ll = (LinearLayout) findViewById(R.id.yourviewhere);
ll.clearAnimation();
ll.startAnimation(a);
}
代码示例来源:origin: Aspsine/SwipeToLoadLayout
@Override
public void start() {
mAnimation.reset();
isRefreshing = true;
mHeaderView.startAnimation(mAnimation);
}
代码示例来源:origin: scwang90/SmartRefreshLayout
@Override
public void start() {
mAnimation.reset();
mRing.storeOriginals();
// Already showing some part of the ring
if (mRing.mEndTrim != mRing.mStartTrim) {
mFinishing = true;
mAnimation.setDuration(ANIMATION_DURATION / 2);
mParent.startAnimation(mAnimation);
} else {
mRing.setColorIndex(0);
mRing.resetOriginals();
mAnimation.setDuration(ANIMATION_DURATION);
mParent.startAnimation(mAnimation);
}
}
代码示例来源:origin: aa112901/remusic
private void animateOffsetToCorrectPosition(int from,
AnimationListener listener) {
mFrom = from;
mAnimateToCorrectPosition.reset();
mAnimateToCorrectPosition.setDuration(ANIMATE_TO_TRIGGER_DURATION);
mAnimateToCorrectPosition.setInterpolator(mDecelerateInterpolator);
if (listener != null) {
mHeadViewContainer.setAnimationListener(listener);
}
mHeadViewContainer.clearAnimation();
mHeadViewContainer.startAnimation(mAnimateToCorrectPosition);
}
代码示例来源:origin: smuyyh/BookReader
private void animateOffsetToCorrectPosition(int from, AnimationListener listener) {
mFrom = from;
mAnimateToCorrectPosition.reset();
mAnimateToCorrectPosition.setDuration(ANIMATE_TO_TRIGGER_DURATION);
mAnimateToCorrectPosition.setInterpolator(mDecelerateInterpolator);
if (listener != null) {
mCircleView.setAnimationListener(listener);
}
mCircleView.clearAnimation();
mCircleView.startAnimation(mAnimateToCorrectPosition);
}
代码示例来源:origin: smuyyh/BookReader
@Override
public void start() {
mAnimation.reset();
mRing.storeOriginals();
// Already showing some part of the ring
if (mRing.getEndTrim() != mRing.getStartTrim()) {
mFinishing = true;
mAnimation.setDuration(ANIMATION_DURATION/2);
mParent.startAnimation(mAnimation);
} else {
mRing.setColorIndex(0);
mRing.resetOriginals();
mAnimation.setDuration(ANIMATION_DURATION);
mParent.startAnimation(mAnimation);
}
}
代码示例来源:origin: smuyyh/BookReader
private void animateOffsetToStartPosition(int from, AnimationListener listener) {
if (mScale) {
// Scale the item back down
startScaleDownReturnToStartAnimation(from, listener);
} else {
mFrom = from;
mAnimateToStartPosition.reset();
mAnimateToStartPosition.setDuration(ANIMATE_TO_START_DURATION);
mAnimateToStartPosition.setInterpolator(mDecelerateInterpolator);
if (listener != null) {
mCircleView.setAnimationListener(listener);
}
mCircleView.clearAnimation();
mCircleView.startAnimation(mAnimateToStartPosition);
}
}
代码示例来源:origin: aa112901/remusic
private void animateOffsetToStartPosition(int from,
AnimationListener listener) {
if (mScale) {
startScaleDownReturnToStartAnimation(from, listener);
} else {
mFrom = from;
mAnimateToStartPosition.reset();
mAnimateToStartPosition.setDuration(ANIMATE_TO_START_DURATION);
mAnimateToStartPosition.setInterpolator(mDecelerateInterpolator);
if (listener != null) {
mHeadViewContainer.setAnimationListener(listener);
}
mHeadViewContainer.clearAnimation();
mHeadViewContainer.startAnimation(mAnimateToStartPosition);
}
resetTargetLayoutDelay(ANIMATE_TO_START_DURATION);
}
代码示例来源:origin: android-cjj/Android-MaterialRefreshLayout
@Override
public void start() {
mAnimation.reset();
mRing.storeOriginals();
mRing.setShowArrow(mShowArrowOnFirstStart);
// Already showing some part of the ring
if (mRing.getEndTrim() != mRing.getStartTrim()) {
mFinishing = true;
mAnimation.setDuration(ANIMATION_DURATION / 2);
mAnimExcutor.startAnimation(mAnimation);
} else {
mRing.setColorIndex(0);
mRing.resetOriginals();
mAnimation.setDuration(ANIMATION_DURATION);
mAnimExcutor.startAnimation(mAnimation);
}
}
代码示例来源:origin: dinuscxj/RecyclerRefreshLayout
private void animateOffsetToStartPosition(int from, Animation.AnimationListener listener) {
clearAnimation();
if (computeAnimateToStartDuration(from) <= 0) {
listener.onAnimationStart(null);
listener.onAnimationEnd(null);
return;
}
mFrom = from;
mAnimateToStartAnimation.reset();
mAnimateToStartAnimation.setDuration(computeAnimateToStartDuration(from));
mAnimateToStartAnimation.setInterpolator(mAnimateToStartInterpolator);
if (listener != null) {
mAnimateToStartAnimation.setAnimationListener(listener);
}
startAnimation(mAnimateToStartAnimation);
}
代码示例来源:origin: dinuscxj/RecyclerRefreshLayout
private void animateToRefreshingPosition(int from, Animation.AnimationListener listener) {
clearAnimation();
if (computeAnimateToRefreshingDuration(from) <= 0) {
listener.onAnimationStart(null);
listener.onAnimationEnd(null);
return;
}
mFrom = from;
mAnimateToRefreshingAnimation.reset();
mAnimateToRefreshingAnimation.setDuration(computeAnimateToRefreshingDuration(from));
mAnimateToRefreshingAnimation.setInterpolator(mAnimateToRefreshInterpolator);
if (listener != null) {
mAnimateToRefreshingAnimation.setAnimationListener(listener);
}
startAnimation(mAnimateToRefreshingAnimation);
}
代码示例来源:origin: rey5137/material
mOutAnimation.reset();
mOutAnimation.setAnimationListener(new Animation.AnimationListener() {
代码示例来源:origin: rey5137/material
mInAnimation.reset();
mInAnimation.setAnimationListener(new Animation.AnimationListener() {
代码示例来源:origin: stackoverflow.com
private void RunAnimation()
{
Animation a = AnimationUtils.loadAnimation(this, R.anim.scale);
a.reset();
TextView tv = (TextView) findViewById(R.id.firstTextView);
tv.clearAnimation();
tv.startAnimation(a);
}
代码示例来源:origin: nuptboyzhb/SuperSwipeRefreshLayout
private void animateOffsetToCorrectPosition(int from,
AnimationListener listener) {
mFrom = from;
mAnimateToCorrectPosition.reset();
mAnimateToCorrectPosition.setDuration(ANIMATE_TO_TRIGGER_DURATION);
mAnimateToCorrectPosition.setInterpolator(mDecelerateInterpolator);
if (listener != null) {
mHeadViewContainer.setAnimationListener(listener);
}
mHeadViewContainer.clearAnimation();
mHeadViewContainer.startAnimation(mAnimateToCorrectPosition);
}
代码示例来源:origin: chenyangcun/MaterialDesignExample
private void animateOffsetToCorrectPosition(int from, Animation.AnimationListener listener) {
mFrom = from;
mAnimateToCorrectPosition.reset();
mAnimateToCorrectPosition.setDuration(ANIMATE_TO_TRIGGER_DURATION);
mAnimateToCorrectPosition.setInterpolator(mDecelerateInterpolator);
if (listener != null) {
mCircleView.setAnimationListener(listener);
}
mCircleView.clearAnimation();
mCircleView.startAnimation(mAnimateToCorrectPosition);
}
代码示例来源:origin: Rogero0o/CatLoadingView
@Override
public void onPause() {
super.onPause();
operatingAnim.reset();
eye_left_Anim.reset();
eye_right_Anim.reset();
mouse.clearAnimation();
eye_left.clearAnimation();
eye_right.clearAnimation();
eyelid_left.stopLoading();
eyelid_right.stopLoading();
mGraduallyTextView.stopLoading();
}
代码示例来源:origin: weexteam/weex-hackernews
@Override
public void start() {
mAnimation.reset();
mRing.storeOriginals();
// Already showing some part of the ring
if (mRing.getEndTrim() != mRing.getStartTrim()) {
mFinishing = true;
mAnimation.setDuration(ANIMATION_DURATION / 2);
mParent.startAnimation(mAnimation);
} else {
mRing.setColorIndex(0);
mRing.resetOriginals();
mAnimation.setDuration(ANIMATION_DURATION);
mParent.startAnimation(mAnimation);
}
}
代码示例来源:origin: huxq17/XRefreshView
@Override
public void start() {
mAnimation.reset();
mRing.storeOriginals();
// Already showing some part of the ring
if (mRing.getEndTrim() != mRing.getStartTrim()) {
mParent.startAnimation(mFinishAnimation);
} else {
mRing.setColorIndex(0);
mRing.resetOriginals();
mParent.startAnimation(mAnimation);
}
}
代码示例来源:origin: iielse/ImageWatcher
@Override
public void start() {
mAnimation.reset();
mRing.storeOriginals();
// Already showing some part of the ring
if (mRing.getEndTrim() != mRing.getStartTrim()) {
mParent.startAnimation(mFinishAnimation);
} else {
mRing.setColorIndex(0);
mRing.resetOriginals();
mParent.startAnimation(mAnimation);
}
}
内容来源于网络,如有侵权,请联系作者删除!