android - ProgressDialog is deprecated.What is the alternate one to use? -


i have come across see progressdialog deprecated. alternate 1 use in place of apart progressbar. using android studio version 2.3.3.

progressdialog progressdialog=new progressdialog(this); progressdialog.show(); 

thanks in advance!

yes, api level 26 it's deprecated, better can use progressbar only.

use code creating programmatically:

 progressbar  progressbar = new progressbar(activity, null, android.r.attr.progressbarstylesmall); 

just future reference, change android.r.attr.progressbarstylesmall android.r.attr.progressbarstylehorizontal.

i hope may you.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -