Ads Ads - 1 year ago 108
Android Question

how to implement fling in android listview

I would like to implement

(or some similar swipe) in listview in each and every item in list. If I swipe that particular item it should display three buttons next to the name.

Is there any idea to implement this.

Ads Ads
Answer Source

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);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download