Is it possible to remove view from screen? Android
For example I have some layout, which contains 3 layouts;
layout_1 layout_2 layout_3
Is it possible to click on layout_1, and move it away from screen, and you’ll receive visible
layout_2 layout_3
Thanks in advance.
upd: The problem is, that I need to slide off this view smoothly. Looks like a sidebar in Facebook. But another thing is, that other two layouts after removing layout_1 should be stretched to fit parent layout.
Set the view an id.
then do
(Cast it to what ever type it is.)
Or do it directly with:
Edit: Following your new info and the question/answer I have commented:
You might need something more advanced if you want the other 2 to take the space up gradually too.