Calculating percent done for progress dialog

前端 未结 3 416
北恋
北恋 2021-01-22 12:39

I am trying to use a progress dialog to show how long until 2 time intensive functions are done.

in my first function I have the total number to db entries and a counter

3条回答
  •  暖寄归人
    2021-01-22 13:23

    Also, note that if you always divide total by 2, then you will never get to 100%, you will range between 0% and 50%.

提交回复
热议问题