i've a listview in which the users can "swipe" to delete item from the listview. But i want to have the possibility to see "details" of this item. I want to call a new activity when the user "click" on an item.
I use this to allow the swipe to delete :
View.OnTouchListener mTouchListener = new View.OnTouchListener()
And so i'm using it with the adapter :
mAdapter = new TestAdapter(getActivity(),
R.layout.layout_test, list, mTouchListener);
listV.setAdapter(mAdapter);
Before to use that, i used onItemClick to get the position of the item choosed.
But how can i get the POSITION without the function onItemClick ?