-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
点击其他地方无法关闭已打开侧滑的item #72
Comments
方法如下,如 //点击RecyclerView的空白区域时关闭菜单
@OnTouch(R.id.list)
public boolean cancelSwipeMenuLayout(View view, MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_UP) {
SwipeMenuLayout viewCache = SwipeMenuLayout.getViewCache();
if (null != viewCache) {
viewCache.smoothClose();
}
}
return false;
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
点击其他地方无法关闭已打开侧滑的item
The text was updated successfully, but these errors were encountered: