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);
}