FileDocCategorySizeDatePackage
ViewCompatEclairMr1.javaAPI DocAndroid 5.1 API2041Thu Mar 12 22:22:56 GMT 2015android.support.v4.view

ViewCompatEclairMr1

public class ViewCompatEclairMr1 extends Object

Fields Summary
public static final String
TAG
private static Method
sChildrenDrawingOrderMethod
Constructors Summary
Methods Summary
public static booleanisOpaque(android.view.View view)


         
        return view.isOpaque();
    
public static voidsetChildrenDrawingOrderEnabled(android.view.ViewGroup viewGroup, boolean enabled)

        if (sChildrenDrawingOrderMethod == null) {
            try {
                sChildrenDrawingOrderMethod = ViewGroup.class
                        .getDeclaredMethod("setChildrenDrawingOrderEnabled", boolean.class);
            } catch (NoSuchMethodException e) {
                Log.e(TAG, "Unable to find childrenDrawingOrderEnabled", e);
            }
            sChildrenDrawingOrderMethod.setAccessible(true);
        }
        try {
            sChildrenDrawingOrderMethod.invoke(viewGroup, enabled);
        } catch (IllegalAccessException e) {
            Log.e(TAG, "Unable to invoke childrenDrawingOrderEnabled", e);
        } catch (IllegalArgumentException e) {
            Log.e(TAG, "Unable to invoke childrenDrawingOrderEnabled", e);
        } catch (InvocationTargetException e) {
            Log.e(TAG, "Unable to invoke childrenDrawingOrderEnabled", e);
        }