MaterialDialog.java 文件源码

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

项目:GitHub 作者:
public Builder customView(@NonNull View view, boolean wrapInScrollView) {
    if (this.content != null)
        throw new IllegalStateException("You cannot use customView() when you have content set.");
    else if (this.items != null)
        throw new IllegalStateException("You cannot use customView() when you have items set.");
    else if (this.inputCallback != null)
        throw new IllegalStateException("You cannot use customView() with an input dialog");
    else if (this.progress > -2 || this.indeterminateProgress)
        throw new IllegalStateException("You cannot use customView() with a progress dialog");
    if (view.getParent() != null && view.getParent() instanceof ViewGroup)
        ((ViewGroup) view.getParent()).removeView(view);
    this.customView = view;
    this.wrapCustomViewInScroll = wrapInScrollView;
    return this;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号