如何按百分比显示进度条状态 [英] how to show progress bar status by percentage
本文介绍了如何按百分比显示进度条状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 android 2.3.3 的进度对话框.进度对话框的状态显示为60% 60/100"格式,但我只想显示百分比而不是60/100".我该怎么做?请帮忙.
I am using progress dialog for android 2.3.3. Progress dialog's status is showing with the format as "60% 60/100" but I want to display only percentage not "60/100". How can I do it? please help.
推荐答案
根据 documentation,您应该在您的 ProgressDialog
实例上调用 setProgressNumberFormat (null)
以获得此行为
According to documentation, you should call setProgressNumberFormat (null)
on your ProgressDialog
instance to get this behavior
这篇关于如何按百分比显示进度条状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文