Android examples for Animation:Animation to Hide
start Softly Hide Animation
//package com.java2s; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.view.View; public class Main { public static void startSoftlyHideAnimation(final View view, final int duration) { view.animate().scaleX(0.95f).scaleY(0.95f).alpha(0.5f) .setDuration(duration)/* w w w .j a v a 2 s .c o m*/ .setListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { super.onAnimationEnd(animation); view.setVisibility(View.GONE); } }).start(); } }