title: Android - Animate a View's topMargin/bottomMargin/etc in LinearLayout or RelativeLayout
body: <p>I am trying to create a menu that slides up from the bottom.  It starts with the menu's view just visible at the bottom of the screen, and then clicking it causes it to slide up.  I tried using a <code>TranslateAnimation</code>, but although the pixels move, the hit areas of the menu are in the same position as before.  So I think that if I can adjust the menu's margins after the animation is complete, this will accomplish what I want.  However, I can't figure out how to adjust the margins.</p>
  
  <p>I've tried to create a <code>LinearLayout.LayoutMargins</code> object and then set its margins and apply it to the menu's view (which is a <code>LinearLayout</code>), but this doesn't work.</p>
  
  <p>Any ideas?</p>