Change android font size ProgressDialog

Is it possible to change the font size and make the text bold, which is displayed in ProgressDialog . I created a ProgressDialog as follows:

 private ProgressDialog dialog; this.dialog = ProgressDialog.show(Activity.this, "Heading","Message...", true); 

I want to make the Title in bold and increase the font size .. pls help

+4
source share
1 answer

If you import android.text.Html; , then you can use the Html.fromHtml() method to do this, for example:

 private ProgressDialog dialog; this.dialog = ProgressDialog.show(Activity.this, Html.fromHtml( "<b>Heading<b>"), Html.fromHtml("<big>Message...</big>"), true); 

You should also use other HTML text formatting tags, such as <small> <u> <i> <sub> , etc., and obviously you can mix and match them like any other HTML text.

+6
source

All Articles