performance - How to swipe the listview -- android -


how swipe using motion event. have customized list view edittext , checkedbox. used swipe particular item of listview using setontouchlistener.

** switch (motionevent.getaction() & motionevent.action_mask) {                         case motionevent.action_move:                          //  mgr.hidesoftinputfromwindow((ibinder) textview, inputmethodmanager.show_forced);                     //   inputmethodmanager.hidesoftinputfromwindow(activity.getcurrentfocus()    .getwindowtoken(), 0);                         float delta = motionevent.getrawx();                      float deltax = motionevent.getrawx() - mdownx;                                 if (math.abs(deltax) > mslop) {                                     // swipe occurred,                                      toast.maketext(getapplicationcontext(), "down", toast.length_short).show();                                  }                           break;                     case motionevent.action_down:                              break;                   }                 return false;             }** 

by using code, cant able swipe action. can guide me on how swipe listview edittext

refer this example.

it nicely , explained demo might useful , solve problem ..


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -