Progress unit in ProgressDialog

后端 未结 4 932
隐瞒了意图╮
隐瞒了意图╮ 2020-12-30 10:27

Android\'s ProgressDialog allows you to set the current progress and maximum value as integers. These values are shown in the dialog like this:

3401/1

4条回答
  •  天涯浪人
    2020-12-30 11:04

    Starting from API 11, you can call the following function to achieve your purpose.

    mProgressDialog.setProgressNumberFormat("%1d/%2d kB") 
    

提交回复
热议问题