hideView

public void hideView() { int cx = mainFilterView.getWidth() + 130; // I've tried - 130 also and did't get the desierd animation int cy = mainFilterView.getHeight() + 130; // I've tried - 130 also and did't get the desierd animation float finalRadius = (float) Math.hypot(cx, cy); Animator animatorReverse = ViewAnimationUtils.createCircularReveal(mainFilterView, cx, cy, finalRadius, 0); animatorReverse.setInterpolator(new AccelerateDecelerateInterpolator()); animatorReverse.addListener(new Animator.AnimatorListener() { @Override public void onAnimationStart(Animator animation) { } @Override public void onAnimationEnd(Animator animation) { mainFilterView.setVisibility(View.INVISIBLE); } @Override public void onAnimationCancel(Animator animation) { } @Override public void onAnimationRepeat(Animator animation) { } }); animatorReverse.setDuration(400); animatorReverse.start(); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.