title: Animate layout size change
body: <p>I have an activity like below screen.</p>
  
  <p><a href="https://i.stack.imgur.com/VqAgr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VqAgr.jpg" alt="Activity1"></a></p>
  
  <p>View 1 have width and height as match_parent respectively. View 2 have width match_parent and fixed (200 dp) height.</p>
  
  <p>On a button click I change the visibility (from visible to gone) of View 2. As soon as I hide View 2, View 1 comes in full screen instantly or with a jerk. I want the View 1 to gradually expand to full screen with animation instead of instantly.</p>
  
  <p>How can I animate this layout size change?</p>