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

如何动态改变dialog的文字内容 #35

Closed
protectedMan opened this issue Dec 15, 2018 · 4 comments
Closed

如何动态改变dialog的文字内容 #35

protectedMan opened this issue Dec 15, 2018 · 4 comments

Comments

@protectedMan
Copy link

No description provided.

@protectedMan protectedMan changed the title 如何动态改变dialog 如何动态改变dialog的文字内容 Dec 15, 2018
@protectedMan
Copy link
Author

qq20181215-160336-hd
具体需求如图,dialog显示期间内容是可以改变的

@kongzue
Copy link
Owner

kongzue commented Dec 15, 2018

我会考虑在新版本中加上去的,感谢反馈

@protectedMan
Copy link
Author

那么支持动态文本就完美了!

@kongzue
Copy link
Owner

kongzue commented Dec 17, 2018

您好,请更新至内测版本 2.4.2.2,也可等待后续正式版本的更新。
更新内容:WaitDialog新增了setText(...)方法用于修改内部文本填充。
使用方法:
1.请先通过WaitDialog.show(...)方法创建并获取WaitDialog对象;
private WaitDialog waitDialog;
//...
waitDialog = WaitDialog.show(context, "");

2.对已实例化的WaitDialog对象进行文本填充:
waitDialog.setText("要填充的文本");

请在主线程使用此方法,否则可能出现错误。

@kongzue kongzue closed this as completed Dec 17, 2018
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

2 participants