Java tutorial
//package com.java2s; import android.animation.ObjectAnimator; public class Main { public static void startAlphaAnim(Object target, float startAlpha, float endAlpha, long duration) { ObjectAnimator.ofFloat(target, "alpha", startAlpha, endAlpha).setDuration(duration).start(); } public static void startAlphaAnim(Object target, long duration) { startAlphaAnim(target, 0.0f, 1.0f, duration); } public static void startAlphaAnim(Object target) { startAlphaAnim(target, 3500); } }