Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.annotation.TargetApi;
import android.os.Build;
import android.view.ViewGroup;

public class Main {
    @TargetApi(Build.VERSION_CODES.HONEYCOMB)
    public static void disableAnimationTransition(Object view) {
        if (view instanceof ViewGroup && Build.VERSION.SDK_INT > 10) {
            ViewGroup viewGroup = (ViewGroup) view;
            viewGroup.setLayoutTransition(null);
        }
    }
}