Back to project page TileView.
The source code is released under:
MIT License
If you think the Android project TileView 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 com.qozix.utils; //from w ww. j a v a 2s . c o m import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; public class ViewCurator { private ViewCurator() { } public static void clear( View view ) { if ( view instanceof ImageView ) { ImageView imageView = (ImageView) view; imageView.setImageBitmap( null ); } else if ( view instanceof ViewGroup ) { ViewGroup viewGroup = (ViewGroup) view; int childCount = viewGroup.getChildCount(); for ( int i = 0; i < childCount; i++ ) { View child = viewGroup.getChildAt( i ); clear( child ); } viewGroup.removeAllViews(); } } }