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 TranslateAnimation
, 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.
I've tried to create a LinearLayout.LayoutMargins
object and then set its margins and apply it to the menu's view (which is a LinearLayout
), but this doesn't work.
Any ideas?