android swipe on ListView doesn't get the correct row -


i using following(android swipe on list) code detect swipe on listview, , using customcursoradapter populate listview cursor. however, when print value of row view swiped, gives me random values list , not swiped row. swipe detecetor in other question , customcusrsoradapter looks this:

class customcursoradapter extends simplecursoradapter { public void bindview(view view, final context context, cursor cursor) { final swipedetector swipedetector = new swipedetector();         //holder.logrow.setontouchlistener(swipedetector); v = (linearlayout)view.findviewbyid(r.id.logsrow);         v.setontouchlistener(swipedetector); } } 

this detects motionevent.action_down doesn't swipes left , right. ideas ?


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -