bauerca / drag-sort-listview

Android ListView with drag and drop reordering.
3.2k stars 1.44k forks source link

Implementing both drag and onItemClick #148

Open bkjbkjbnkj687698698 opened 8 years ago

bkjbkjbnkj687698698 commented 8 years ago

I want to add both drag functionality and setOnItemClickListener to listview but i am able to implement only one of them..if i use dslv:drag_start_mode="onMove" only OnItemClick happens and if i don't use dslv:drag_start_mode="onMove" only drag happens.How to implement both functionality?

XspeedPL commented 8 years ago

If you have the code from "master", it's enough to add mDslv.onItemClick() line to Controller.onSingleTapUp(), and it works like a charm. It requires you to use the default controller though.