title: Titanium Alloy - Animating window on Android
body: <p>I'm fairly new to Titanium Alloy, last 2 weeks i've been digging in the docs &amp; Q/A to figure out how to animate open a window but none of the solutions work for me or just partly.</p>
  
  <p>This is where i got so far - the slide_in_up is working, but the closing animation <strong>slide_out_down</strong> is not. Strange is, when i change the close animation to slide_out_right, it works.</p>
  
  <p>I've got the animation xml files in /platform/android/res/anim/slide_in_up.xml and slide_out_down.xml</p>
  
  <p>Am i doing something wrong?  </p>
  
  <p>My index.js</p>
  
  <pre><code>$.cardbut.addEventListener('click', function(e) {
      var cardwin = Alloy.createController('card').getView();
  
      cardwin.open({
          activityEnterAnimation : Ti.App.Android.R.anim.slide_in_up,
  
      });
      cardwin.addEventListener('android:back', function() {
  
          cardwin.close({
              activityExitAnimation : Ti.Android.R.anim.slide_out_down
          });
      });
  
  });
  </code></pre>
  
  <p>My card.js</p>
  
  <pre><code>function backHome(){
        $.card.close({
              activityExitAnimation : Ti.Android.R.anim.slide_right,
  
          });
  }
  </code></pre>
  
  <p>and card.xml</p>
  
  <pre><code>    &lt;Alloy&gt;
      &lt;Window  exitOnClose="false" modal="true" navBarHidden="true"  fullscreen="true" layout="vertical"&gt;
          &lt;View id="topbar"&gt;
              &lt;ImageView id="topbarimage" &gt;&lt;/ImageView&gt;
          &lt;/View&gt;
          &lt;View onClick="backHome" width="100%" height="150" backgroundColor="#880000"&gt;
          &lt;Label&gt;Card page&lt;/Label&gt;
          &lt;/View&gt;
      &lt;/Window&gt;
  &lt;/Alloy&gt;
  </code></pre>