在 Android 中的进度指示器下方显示文本
我在从一个屏幕切换到另一个屏幕时显示进度条。 这是圆形进度条,里面有一条消息“正在加载” 此消息出现在进度栏的右侧。 我想在圆形加载下方显示它。是否可以?
progressDialog = ProgressDialog.show(test2.this, "", "Initializing", false);
Thread thread=new Thread(new Runnable(){
public void run(){
startActivity(new Intent(test2.this, test.class));
runOnUiThread(new Runnable(){
public void run() {
if(progressDialog.isShowing())
progressDialog.dismiss();
}});
}});
thread.start();
I am showing a progress bar while switching from one screen to another.
It is the circular progress bar and there is a message in it "Loading"
This message is appearing on the right side of progress bar.
I want to show it below the circular loading. Is it possible?
progressDialog = ProgressDialog.show(test2.this, "", "Initializing", false);
Thread thread=new Thread(new Runnable(){
public void run(){
startActivity(new Intent(test2.this, test.class));
runOnUiThread(new Runnable(){
public void run() {
if(progressDialog.isShowing())
progressDialog.dismiss();
}});
}});
thread.start();
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为此,您必须创建一个自定义对话框,如下所示,对其进行修改以满足您的需求
popup_example.xml
For that you have to create a custom dialog box something like below modify it to suit your needs
popup_example.xml