daimajia / daimajia/AndroidSwipeLayout

SwipeLayout .close is not working

Open
#450 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
12.3k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

I did what is shown in the demo listView.setOnItemClick
`((SwipeLayout) (list.getChildAt(position - list.getFirstVisiblePosition()))).close(true);`
but this is not working.

Same as with the adapter.
`swipeLayout.setOnDoubleClickListener(new SwipeLayout.DoubleClickListener() {
@Override
public void onDoubleClick(SwipeLayout layout, boolean surface) {
Toast.makeText(activity, "close", Toast.LENGTH_SHORT).show();
layout.close(true);
}
});`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.