We can use swipe gestures within each ListView item to allow the user to perform a particular action or change the UI of the ListView row item.
This tutorial will help you to implement a custom ListView which initially display some details in TextViews and; when the user swipes from Right to Left on a list item; few ImageButtons appear from the right direction and the details slide out to the left.
I will try do this without the usage of any external libraries or APIs. Using the stock widgets(Views) of android and some simple animation using XMLs.
How the ListView will look and behave?
How the project is organized?
Create a new project and create a new xml file named list_row_item.xml in the /res/layout folder.
Now create a folder named anim in the /res folder of your project. As mentioned earlier this folder will be used to keep the animation files. After that you need to create the following four XML files in the /res/anim folder:
Feel free to post your comments, queries and suggestions. Cheers... ;)