Skip to content
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

ListViewFroScrollView中侧滑删除了item无法缩进 #68

Open
pengqun1123 opened this issue Apr 13, 2018 · 1 comment
Open

ListViewFroScrollView中侧滑删除了item无法缩进 #68

pengqun1123 opened this issue Apr 13, 2018 · 1 comment

Comments

@pengqun1123
Copy link

ListViewFroScrollView中侧滑删除了item无法缩进,已经调用了smoothClose() 却没出现缩进效果

mHold.swipeItem.setIos(true);
//delete
mHold.itemDeleteBtn.setOnClickListener(new View.OnClickListener() {
@OverRide
public void onClick(View v) {
mMessage = mHandler.obtainMessage();
mMessage.what = 1;
mMessage.arg1 = position;
mHandler.sendMessage(mMessage);
mHold.swipeItem.smoothClose();
mHold.swipeItem.quickClose();
//在ListView里,点击侧滑菜单上的选项时,如果想让擦花菜单同时关闭,调用这句话
((SwipeMenuLayout) mHold.swipeItem).quickClose();
notifyDataSetChanged();
}
});

@pengqun1123
Copy link
Author

看了下源码注释,已经解决了;直接点击外部关闭item menu的方法
SwipeMenuLayout viewCache = SwipeMenuLayout.getViewCache();
if (null != viewCache) {
viewCache.smoothClose();
}
感谢作者的贡献!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant