Skip to content

IOSProgressDialog

Leonardo D. Palma edited this page Mar 27, 2025 · 6 revisions

Create and display an iOS-style progress dialog.

Usage

IOS AlertDialogProgress

In code:

IOSProgressDialog.Builder(applicationContext)
                    .setMessage("What is Lorem Ipsum?")
                    .create()
                    .show()

Attributes

IOSProgressDialog offers several attributes for a deeper view configuration, the following table shows all these options and their default value.

Name Description Values Default Related method(s)
Builder Creates a builder for an alert dialog that uses the default alert dialog theme Context N/A Builder()
Message Sets the message to display String, Int N/A setMessage()
Cancelable Sets whether the dialog is cancelable or not Boolean true setCancelable()
Gravity Set gravity of the dialog Int [android.view.Gravity] N/A setGravity()
create Creates an IOSProgressDialog with the arguments supplied to this builder - - create()
show Start the dialog and display it on screen - - show()

If you want to add more functionality to dialog events, you can use the following methods to capture the actions.

  • When the dismiss option is called from the dialog box, you can use the setOnDismissListener method to perform additional actions.
  • When the cancel option is called from the dialog box, you can use the setOnCancelListener method to perform additional actions.
  • When the show option is called from the dialog box, you can use the setOnShowListener method to perform additional actions.

Clone this wiki locally