Notification-like list element deletion on slide-out in Android

Viewed 2303

I wonder how can I make a ListView's elements slide out on slide, like the way you can slide a notification from the notifications bar in Android. This is my situation:

I have a list of items, and, when the user wants to remove an item from this list, she simply slides an element towards the edge of the screen. I would like this slide-out to be visible, e.g. to use some kind of animation that slides out that given View holding the item.

Here are some images to illustrate this.

First, this is the normal state of the notification.

Normal state of notification

And then, this is during slide-out

State during slide-out

Thanks.

2 Answers
Related