由网友(留胡渣的硬汉)分享简介:我在我的应用程序的进度条,但它显示我想删除的文字一些文本默认。请帮助我如何删除文本。下面是我的code片断:ProgressDialog progDialog =新ProgressDialog(ProgressBarExample.this);progDialog.setProgressStyle(ProgressD...
我在我的应用程序的进度条,但它显示我想删除的文字一些文本默认。请帮助我如何删除文本。
下面是我的code片断:
ProgressDialog progDialog =新ProgressDialog(ProgressBarExample.this);
progDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
progDialog.setMax(200);
progDialog.setMessage(美元的支票帐户:);
progDialog.setButton(取消,
新DialogInterface.OnClickListener(){
@覆盖
公共无效的onClick(DialogInterface对话,诠释它){
// TODO自动生成方法存根
}
});
progDialog.show();
下面是截图:
谢谢, 拉姆。
解决方案 progDialog.setProgressNumberFormat(空);
progDialog.setProgressPercentFormat(空);
I have a progress bar in my app but it is showing some text default i want to remove the text. please help me how to remove the text.
Here is my code snippet:
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();
here is a screenshot:
Thanks, Ram.
解决方案progDialog.setProgressNumberFormat(null);
progDialog.setProgressPercentFormat(null);
相关推荐
最新文章