Java tutorial
//package com.java2s; import android.support.v4.view.ViewCompat; import android.view.View; import android.widget.TextView; public class Main { private static final float ANIMATION_IN = 1f; private static final float ANIMATION_OUT = -1f; private static final int ANIMATION_TAP_DURATION = 400; public static void showTapText(TextView view) { view.setVisibility(View.VISIBLE); view.setAlpha(ANIMATION_IN); ViewCompat.animate(view).alphaBy(ANIMATION_OUT).setDuration(ANIMATION_TAP_DURATION); } }