title: View disappear after animating out of Screen bounds
body: <p>I'm implementing an <code>Animation</code> for one menu in my project.</p>
  
  <p>The animation itself is ok, the menu enters and exit just as I wanted: Slide from left to right and right to left, however...</p>
  
  <p>If the entire view is OUT of the screen, then it NEVER comes back egain! If, at least one pixel is still inside the screen, then it comes back normally.</p>
  
  <p>I belive that Android is disposing the layout, and not caring about it after out of the screen bounds. I tried to place a <code>setVisibility(VISIBLE)</code> but it also didn't worked.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>public class ChwaziMenuAnimation extends Animation{
  
          float posStart = 0;
          float posTarget = 100;
  
          int getCurrentPosition(){
              RelativeLayout.LayoutParams rootParam =
                      (RelativeLayout.LayoutParams) rootView.getLayoutParams();
  
              return rootParam.leftMargin;
          }
  
          public void setTarget(float target){
              // Save current position
              posStart = getCurrentPosition();
              posTarget = target;
          }
  
          @Override
          protected void applyTransformation(float interpolatedTime, Transformation t) {
  
              RelativeLayout.LayoutParams rootParam =
                      (RelativeLayout.LayoutParams) rootView.getLayoutParams();
  
              // Calculate current position
              rootParam.leftMargin = (int) ((posTarget - posStart) * interpolatedTime + posStart);
  
              rootView.setLayoutParams(rootParam);
          }
  
          /*
           *  Since we will be animating the margin, the bounds will always change 
           */
          public boolean willChangeBounds() {
              return true;
          };
  
  
      };
  </code></pre>
  
  <p>And how I initialize the animation:</p>
  
  <pre><code>public void appear(){
  
          Log.i(TAG, "appear");
  
          menuAnimation.setTarget(0);
          menuAnimation.setDuration(750);
          rootView.clearAnimation();
          rootView.startAnimation(menuAnimation);
      }
  
      public void disapear(){
          Log.i(TAG, "disapear");
  
          menuAnimation.setTarget(-400);
          menuAnimation.setDuration(750);
          rootView.startAnimation(menuAnimation);
      }
  </code></pre>