List of usage examples for android.view ViewGroup destroyDrawingCache
@Deprecated public void destroyDrawingCache()
Frees the resources used by the drawing cache.
From source file:org.odk.collect.android.widgets.QuestionWidget.java
private void recycleDrawablesRecursive(ViewGroup viewGroup, List<ImageView> images) { int childCount = viewGroup.getChildCount(); for (int index = 0; index < childCount; index++) { View child = viewGroup.getChildAt(index); if (child instanceof ImageView) { images.add((ImageView) child); } else if (child instanceof ViewGroup) { recycleDrawablesRecursive((ViewGroup) child, images); }//from w w w . j a v a2 s.co m } viewGroup.destroyDrawingCache(); }