我的应用程序中有一个进度条,但它显示了一些默认文本,我想删除这些文本。请帮助我如何删除文本。
这是我的代码 fragment :
ProgressDialog progDialog = new ProgressDialog(ProgressBarExample.this);
progDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
progDialog.setMax(200);
progDialog.setMessage("Dollars in checking account:");
progDialog.setButton("Cancel",
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
}
});
progDialog.show();
截图如下:
谢谢, 拉姆。
最佳答案
progDialog.setProgressNumberFormat(null);
progDialog.setProgressPercentFormat(null);
关于android - 如何在 Android 中删除 progressBar 中的文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8895272/