Example #1
0
 /** @hide */
 @Override
 protected void destroyHardwareResources() {
   super.destroyHardwareResources();
   destroySurface();
   invalidateParentCaches();
   invalidate(true);
 }
    private static void destroyResources(View view) {
      view.destroyHardwareResources();

      if (view instanceof ViewGroup) {
        ViewGroup group = (ViewGroup) view;

        int count = group.getChildCount();
        for (int i = 0; i < count; i++) {
          destroyResources(group.getChildAt(i));
        }
      }
    }