Android: Image View visibility does not work - Cannot change visibility

I wanted to remove an image from view temporarily and called the following function:
this.civ = (ImageView) findViewById( R.id.imageCiv);
civ.setVisibility( View.INVISIBLE );

But it did not work. I found a solution at Stackoverflow mentioning the value View.Gone as a possibility to solve this problem. It did not work either. After a few tests I found a solution. I animated the image with a simple rotation based on the compass value. This animation was prompting the image view over and over to be visible instead of the currently set invisible state. I had to clear and stop the animation while hiding the image view.
imageCompassMapOverlay.clearAnimation();
imageCompassMapOverlay.setVisibility( View.INVISIBLE );

Hope that this may help you!