/**
* convenience method to be used if you have previously set a {@link Snackbar} with {@link #withSnackBar(Snackbar, String)}
*
* @param positions the positions where the items were removed
* @return the snackbar or null if {@link #withSnackBar(Snackbar, String)} was not previously called
*/
public @Nullable Snackbar remove(Set<Integer> positions) {
if (mSnackBar == null) {
return null;
}
View snackbarView = mSnackBar.getView();
TextView snackbarText = (TextView) snackbarView.findViewById(android.support.design.R.id.snackbar_text);
return remove(snackbarView, snackbarText.getText().toString(), mSnackbarActionText, mSnackBar.getDuration(), positions);
}
UndoHelper.java 文件源码
java
阅读 52
收藏 0
点赞 0
评论 0
项目:GitHub
作者:
评论列表
文章目录