title: how to achieve this kind of animation in android?
body: <p><a href="https://web.archive.org/web/20160604191926/https://d13yacurqjgara.cloudfront.net/users/25514/screenshots/2741477/ios_expanding_collection_open_source_ramotion.gif" rel="nofollow noreferrer"><img src="https://web.archive.org/web/20160604191926/https://d13yacurqjgara.cloudfront.net/users/25514/screenshots/2741477/ios_expanding_collection_open_source_ramotion.gif" alt="a busy cat"></a></p>
  
  <p>tried animations for a cardview in horizontal recycler view, but no luck!!!!</p>
  
  <pre><code>private Animation inFromTopAnimation() {
          Animation inFromTop = new TranslateAnimation(
                  Animation.RELATIVE_TO_PARENT, 0.0f,
                  Animation.RELATIVE_TO_PARENT, 0.0f,
                  Animation.RELATIVE_TO_PARENT, -1.0f,
                  Animation.RELATIVE_TO_PARENT, 0.0f);
          inFromTop.setDuration(500);
          inFromTop.setInterpolator(new AccelerateInterpolator());
          return inFromTop;
      }
  </code></pre>