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

可以Builder制作成链式调用 #22

Open
Jmengfei opened this issue May 9, 2017 · 0 comments
Open

可以Builder制作成链式调用 #22

Jmengfei opened this issue May 9, 2017 · 0 comments

Comments

@Jmengfei
Copy link

Jmengfei commented May 9, 2017

现在只能通过setters方法传参数,亲身感受多了很难受而且容易出错,建议做成builder链式调用,一句话搞定相当的爽,可看改进后代码

new ShareBottomDialog.ShareBottomDialogBuilder("targetUrl")
.title("title")
.summary("summary")
.thumbUrlOrPath("thumbUrlOrPath")
.build()
.show(getSupportFragmentManager());

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