daimajia / daimajia/AndroidSwipeLayout
When setting up a SwipeAdapter, the close() method of the SwipeLayout only closes the last item on the ListView.
- Dominant language
- Java
- Stars
- 12.3k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
My problem is this: I want the SwipeLayout to close (the surfaceview to slide back and cover the bottom view) when I touch a certain touch target on the bottom view. For this, I set an OnClickListener on the item on the bottom view that I'm interested in and then call SwipeLayout.close() when the item is clicked.
Unfortunately, this only works on the last item of the ListView. All the previous ones do not exhibit the desired behaviour - that is, when I touch the item with the OnClickListener, the close() method appears to do nothing and the SwipeLayout stays open (everything else in the OnClickListener runs perfectly).
I do not set any listeners in the generateView() method, everything happens in the fillValues() method. I'm stumped!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.