I want to develop a layout with a very simple ImageView and Listview linked in Relativelayout. Now, for a better user interface, I want to remove the image view by checking it left or right, like what was implemented in the Android Android application for deleting letters.
Implementing it in a listview element is very simple, and there are many links and sample code available on the Internet, including official talk about Google input / output in animations, and Chet Hasse is very well explained here.
https://www.youtube.com/watch?v=YCHNAi9kJI4
but I do not require it to be implemented in listview elements, which I want to implement in a more general way. In my case, I want the same behavior for the ImageView element as one view, and ListView another. As below

Once the ImageView element has been removed, the entire ListView should smoothly exit at the top.
I tried many ways to implement the same without any success.
Suggest me an approach or a few examples for this, which is supported on Gingerbread and above Android OS.
android android-animation
pyus13
source share