UndoHelper.java 文件源码

java
阅读 52 收藏 0 点赞 0 评论 0

项目:GitHub 作者:
/**
 * 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);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号