daimajia / AndroidSwipeLayout

The Most Powerful Swipe Layout!
MIT License
12.38k stars 2.67k forks source link

ListView中,在滑动的同时也会触发SwipeLayout的OnclickListener #240

Closed ding102992 closed 8 years ago

ding102992 commented 8 years ago

我需要点击ListView的Item进入详情页面,滑动出现删除按钮,然后滑动的时候,就触发点击事件进入详情页了。 When I drag the item of a listView,then the OnClickListener of SwipeLayout is being invoked.

ding102992 commented 8 years ago

中文

通过

SwipeLayout.getSurfaceView().setOnClickListener(todo);

可以实现点击Item的效果。

En

Item click event can be replaced by

SwipeLayout.getSurfaceView().setOnClickListener(todo);