title: Show and hide a View with a slide up/down animation
body: <p>I have a <code>LinearLayout</code> that I want to show or hide with an <code>Animation</code> that pushes the layout upwards or downwards whenever I change its visibility.</p>
  
  <p>I've seen a few samples out there but none of them suit my needs.</p>
  
  <p>I have created two xml files for the animations but I do not know how to start them when I change the visibility of a <code>LinearLayout</code>. </p>