How can I "slide up" a view on android from the bottom of a screen?
Posted
by
Jakub Arnold
on Stack Overflow
See other posts from Stack Overflow
or by Jakub Arnold
Published on 2013-11-03T14:39:15Z
Indexed on
2013/11/03
15:53 UTC
Read the original article
Hit count: 235
I'm trying to make a really simple slide up list view, which is displayed when a user clicks on a button at the bottom of the screen. Here's how it should look:
And a complete implementation in HTML/JS http://jsbin.com/utAQOVA/1/edit
I've tried to use RelativeLayout
to position the list just below the button, and put that whole thing into a wrapper and then animate that up/down (same as in the JSBin above).
The problem is that the bottom part which isn't visible in the beginning is somehow clipped, even if I slide it up. Evern if I initially show a portion of the list as the screenshow below shows, the bottom part gets clipped when it moves up and only the part that was initially visible is displayed.
What would be a proper approach to do this kind of animation?
© Stack Overflow or respective owner