I have a button (button1) and relative layout (rLayout). At start, rLayout is not visible to user. When the button is clicked, I want:
- if rLayout is invisible, it should slide in from the bottom of the screen,
- If rLayout is visible, it should slide back until it completely disappears below the bottom of the screen.
It should be something like SlidingDrawer but not the same thing.
I can do it with TranslateAnimation, AnimationListener and OnClickListener, BUT: my API version is 11 and I read that there are better ways to handle animation since api11. I tried to find examples of what I need, but failed to do so. So my question is: are animation techniques introduced in API 11 better that old ones and how to do what I need with those techniques?