如何显示按百分比进度条状态 [英] 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.
推荐答案
据<一href="http://developer.android.com/reference/android/app/ProgressDialog.html#setProgressNumberFormat%28java.lang.String%29">documentation,你应该叫 setProgressNumberFormat(空)
在 ProgressDialog
实例来获得这一行为
According to documentation, you should call setProgressNumberFormat (null)
on your ProgressDialog
instance to get this behavior
这篇关于如何显示按百分比进度条状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文