title: Animate transition of items when switching content view between ListView and GridView
body: <p>I am working on a feature to switch between list layout and grid layout of displayed data. Something similar that Google Drive application has both on Android and on iOS platform. I especially like animation that comes with the transition on iOS version of app, where items are moved to their new positions and resized instead of just appearing there.</p>
  
  <p>One solution I thought of would be to have one custom ViewGroup that would have both ListView and GridView functionality and would use one or another based on a flag that would be set from client code. That way I would know positions of items in one layout when I am about to draw new items after switching to new layout. </p>
  
  <p>One thing I was wondering is if there isn't more straightforward solution by using features from new transition framework from KitKat, because basically I can reuse loaded data in fragment and just switch between ListView and GridView. But nothing I know would import transition animations right away.</p>