title: Fadein fadeout for two imageviews overlapped
body: <p>I want to have fade-in, fade-out effect for two image views </p>
  
  <p>I have two Image-views one overlapped on another I mean two image-views are one above the other,</p>
  
  <p>when we click on the upper image-view it should fadeout and lower image-view should be visible. For the second click on lower image-view it should fadeout and first view should appear.</p>
  
  <p>when i click the upper image-view  lowerone is appearing but when I click on the lower one its not fading out, Its remaining there.</p>
  
  <p>How can we achieve this, plz help.
  here is my code:</p>
  
  <pre><code>mswtview4.setOnClickListener(new View.OnClickListener() {
  
      @Override
      public void onClick(View v) {
          FadeoutAnimation.reset();
          mswtview4.startAnimation(FadeoutAnimation);
  
          FadeoutAnimation.setFillAfter(true);
          mswtview4.setVisibility(View.GONE);
      }
  });
  
   mswtview2.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View v) {
              FadeoutAnimation.reset();
  
              mswtview2.startAnimation(FadeoutAnimation);
          FadeoutAnimation.setFillAfter(true);
  
              mswtview4.setVisibility(View.VISIBLE);
  
  
          }
      });
  </code></pre>