android - custom font in progress bar -


i use custom font in progressbar message "loading" , "sync data, please wait..." change custom font.here code. how can settypeface method change custom font.

 private void createprogressbar() {     if (progressdialog == null) {         string msg = "";string title= "";         if (common.languageinfo.equals("local")) {             msg = "အလုပ္လုပ္ေနပါသည္";title="တင္ေန...";         }else {             msg= "sync data, please wait ...";             title = "loading...";             typeface tf = typeface.createfromasset(context.getassets(),                      "fonts/" + fontinfo.default_font);          }           progressdialog = new progressdialog(this);          progressdialog.setprogressstyle(progressdialog.style_spinner);          progressdialog.settitle(title);           progressdialog.setmessage(msg);          progressdialog.setcancelable(false);          progressdialog.setindeterminate(false);          progressdialog.setmax(100);          progressdialog.setprogress(0);          progressdialog.show();     } } 


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -