Code example for View

Methods: setVisibility

0
                        mCanceled = true;
                        ecaView.setAlpha(1f);
                    } 
                    @Override 
                    public void onAnimationEnd(Animator animation) {
                        ecaView.setVisibility(mCanceled ? View.VISIBLE : View.INVISIBLE);
                    } 
                }); 
                anim.start();
            } else { 
                ecaView.setAlpha(0f);
                ecaView.setVisibility(View.INVISIBLE);
            } 
        } 
        if (bouncerFrame != null) {
            if (duration > 0) {
                Animator anim = ObjectAnimator.ofInt(bouncerFrame, "alpha", 0, 255);
                anim.setDuration(duration);
                anim.start();
            } else { 
Connect your IDE to all the code out there  Get Codota for Java