Home > Mobile >  ProgressDialog is deprecated, how to replace?
ProgressDialog is deprecated, how to replace?

Time:09-27

Code has been used in the ProgressDialog to display the progress bar, because this does not need to consider the layout of the page, walked close to, but now ProgressDialog is deprecated, see you online a great god, it is better to use other controls, suggest the ProgressBar, but this is in the page layout in advance, if want to change, is to change, a lot of places of, now temporarily or a ProgressDialog to display,
But still want to ask, if I still want to realize the pop-up progress bar to how to do? Best can give a code, thank you, first!

CodePudding user response:

It can be set box implementation is very nice

CodePudding user response:

reference 1/f, yi xi response:
this can achieve very nice set of box

Say specifically, I put the Progressbar in AlertDialog pilot, but seems to have what's wrong, wait a simple circle should move up,

CodePudding user response:

You can inherit the dialog to rewrite a loadingDialog

CodePudding user response:

The main or your implementation issues

CodePudding user response:

ProgressDialog reason is not used by this class is not recommended from the standpoint of design, in itself it's not a problem, most of the app actually less strict follow the design rules of Google with and without so it doesn't matter, I see QQ also has many places or use of this

CodePudding user response:

Google recommends dialogFragment this is the best choice
  • Related