We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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无法缩进,已经调用了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(); } });
The text was updated successfully, but these errors were encountered:
看了下源码注释,已经解决了;直接点击外部关闭item menu的方法 SwipeMenuLayout viewCache = SwipeMenuLayout.getViewCache(); if (null != viewCache) { viewCache.smoothClose(); } 感谢作者的贡献!!!
Sorry, something went wrong.
No branches or pull requests
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();
}
});
The text was updated successfully, but these errors were encountered: