I would like to implement onfling
(or some similar swipe) in listview in each and every item in list. If I swipe that particular item it should display three bu
Use EfficientAdapter
rather than listview. Using which you can set theonFling
event and override it to your needs
I have implemented this with the help of gesture detection:
gestureDetector = new GestureDetector(context, new MyGestureDetector());
gestureListener = new View.OnTouchListener() {
public boolean onTouch(View v, MotionEvent event) {
return gestureDetector.onTouchEvent(event);
}
};
mList.setOnTouchListener(gestureListener);