setTitle

fun setTitle(title: CharSequence)

Sets the Title of ProgressDialog. This is "ProgressDialog" by Default. Title is Hidden by Default. This Method makes the Title Visible. Title will be made visible automatically if setNegativeButton or setNegativeButton was used before.

Parameters

title

The text to be set as the Title of ProgressDialog.


fun setTitle(@StringRes titleResID: Int)

Sets the Title of ProgressDialog using the String resource given. Title is "ProgressDialog" by Default. Title is Hidden by Default. This Method makes the Title Visible. Title will be made visible automatically if setNegativeButton or setNegativeButton was used before.

Parameters

titleResID

The resource id of the string resource.