Skip to content Skip to sidebar Skip to footer

How To Change Layout Of Only Selected Listview Row With In Onitemclicklistener Of Listview

I need to create ListView like Samsung Contact List. And I need to show custom layout for that row while that row is swiped. And also need to show contact detail at background of t

Solution 1:

Within onItemClickListener, you can implement onItemClick (AdapterView<?> parent, View view, int position, long id). If you retrieve the view, you can make the changes you need for it when the user clicks on that item.

For swiping, you can modify your adapter's getItem() function and add a GestureListener or something like this code. Then you can listen for swipes and act accordingly.

Post a Comment for "How To Change Layout Of Only Selected Listview Row With In Onitemclicklistener Of Listview"