Back to project page transitions-everywhere.
The source code is released under:
Apache License
If you think the Android project transitions-everywhere listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package android.transitions.everywhere.utils; // w w w.ja v a 2s. c om import android.annotation.TargetApi; import android.os.Build.VERSION; import android.os.Build.VERSION_CODES; import android.view.ViewGroup; public class ViewGroupUtils { interface ViewGroupUtilsImpl { void suppressLayout(ViewGroup group, boolean suppress); } static class BaseViewGroupUtilsImpl implements ViewGroupUtilsImpl { @Override public void suppressLayout(ViewGroup group, boolean suppress) { // TODO: Implement support behavior } } @TargetApi(VERSION_CODES.JELLY_BEAN_MR2) static class JellyBeanMr2ViewGroupUtilsImpl extends BaseViewGroupUtilsImpl { @Override public void suppressLayout(ViewGroup group, boolean suppress) { ViewGroupUtilsJellyBeanMr2.suppressLayout(group, suppress); } } private static final ViewGroupUtilsImpl IMPL; static { if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR2) { IMPL = new JellyBeanMr2ViewGroupUtilsImpl(); } else { IMPL = new BaseViewGroupUtilsImpl(); } } public static void suppressLayout(ViewGroup group, boolean suppress) { IMPL.suppressLayout(group, suppress); } }