1

cannot remove specific views in android

view story
linux-howto

http://stackoverflow.com – I have a problem in removing views. ViewGroup owner = (ViewGroup) lastImageSelected.getParent(); int x = owner.getChildCount(); for(int i=0; i<=x; i++) { View currentChild = owner.getChildAt(i); if (currentChild != mainImage && currentChild != zoomIn && currentChild != zoomOut && currentChild != rotatePoint) { owner.removeView(currentChild); owner.invalidate(); } } This code i (HowTos)