Animator end - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Animator end method.

This code example shows how to use the following methods:end, isRunning, setTarget, start
            container.start(view, closing);
        } 
    } 
 
    private void start(View view, boolean closing) {
        if (mEnterAnimation.isRunning()) {
            mEnterAnimation.end();
        } 
        if (mExitAnimation.isRunning()) {
            mExitAnimation.end();
        } 
        if (view.getVisibility() != View.VISIBLE) {
            if (!closing) {
                mEnterAnimation.setTarget(view);
                mEnterAnimation.start();
            } 
        } else if (closing) {
            mExitAnimation.setTarget(view);
            mExitAnimation.start();
        } else { 

7
CodeRank
This code example shows how to use the following methods:addListener, end
6
CodeRank
This code example shows how to use the following methods:end
        if (mVisibilityAnim != null) {
            mVisibilityAnim.end();
        } 
        super.setVisibility(visibility);
    } 
 
    public boolean showOverflowMenu() { 
        if (mActionMenuPresenter != null) {
            return mActionMenuPresenter.showOverflowMenu();
        } 
        return false; 
    } 
 
    public void postShowOverflowMenu() { 
        post(new Runnable() {
            public void run() { 
                showOverflowMenu(); 
            } 
        }); 
    } 
6
CodeRank
This code example shows how to use the following methods:end
 
    @Override 
    public void setVisibility(int visibility) {
        if (visibility != getVisibility()) {
            if (mVisibilityAnim != null) {
                mVisibilityAnim.end();
            } 
            super.setVisibility(visibility);
        } 
    } 
 
    public boolean showOverflowMenu() { 
        if (mActionMenuPresenter != null) {
            return mActionMenuPresenter.showOverflowMenu();
        } 
        return false; 
    } 
 
    public void postShowOverflowMenu() { 
        post(new Runnable() {
4
CodeRank
This code example shows how to use the following methods:end
		 *   1、先让mBtn1 gone掉,gone 掉之后,mBtn2 的translationY 设定为 mBtn1.getHeight, 移到0 
		 *   如果这样的话 mBtn1 就不会有 透明度的变化了,起码在hide的这个动作,这个不可行 
		 */ 
		 
		if(mAnimhide!=null){
			mAnimhide.end();
		} 
		AnimatorSet anim=new AnimatorSet();
		AnimatorSet.Builder b = anim.play(android.animation.ObjectAnimator.ofFloat(mBtn1, "alpha", 0));
		b.with(ObjectAnimator.ofFloat(mBtn1, "translationY", -mBtn1.getHeight()));
		b.with(ObjectAnimator.ofFloat(mBtn2, "translationY", 0,-mBtn1.getHeight()));
		anim.addListener(new AnimatorListener() {
			 
			@Override 
			public void onAnimationStart(Animator animation) {
				 
			} 
			 
			@Override 
			public void onAnimationRepeat(Animator animation) {
4
CodeRank
end Method Overview
Ends the animation.
See Code Examples for other Android Animator Methods: