I have a view in my activity at some position from the top. Now i want to slide it out/in to/from the Top on a button click.
Initially it should be invisible.
1) When button click it should be visible but animating from top to it's position. 2) When button click it should be invisible from it's position to top.
Can anyone have code for implementing this idea. What kind of animation is needed to write. Please share your experience. Thanks in advance.