set Layout Transition Duration - Android User Interface

Android examples for User Interface:Layout

Description

set Layout Transition Duration

Demo Code


//package com.java2s;
import android.animation.LayoutTransition;

import android.view.ViewGroup;

public class Main {
    public static void setLayoutTransitionDuration(ViewGroup viewGroup) {
        LayoutTransition layoutTransition = viewGroup.getLayoutTransition();
        layoutTransition.setDuration(600);
        layoutTransition.setStartDelay(LayoutTransition.DISAPPEARING, 0);
    }//w w  w.ja v a 2 s.  c  om
}

Related Tutorials