PleaseWait Library

A lightweight Material 3 progress dialog to replace the deprecated android.app.ProgressDialog.

The PleaseWait sample app showing an indeterminate circular progress dialog
Role
Author and maintainer
Replaces
Deprecated android.app.ProgressDialog
Modes
Determinate and indeterminate
Safety
Retains state across orientation changes

At a glance

Design systemsMaterial 2 and Material 3
IndicatorsCircular and linear progress bars
ThemingFollows dark/light automatically, adopts app colors
InteropFully usable from Java

Engineering notes

Timing controls

A delay before showing and a minimum visible duration, so fast operations never flash a dialog at the user.

Rotation-safe

State is retained across configuration changes — the dialog does not vanish or double up when the device rotates.

Theme-adaptive

Follows the system dark/light mode and adopts the host app's theme colors rather than shipping its own palette.

Small by design

Lightweight and easy to drop in, with smooth Material animations and transitions inherited rather than reimplemented.
Indeterminate modeDeterminate modeDark and light modes
PreviewPreviewPreview

Features

  • Supports Material 2 and the latest Material 3 design
  • Both determinate and indeterminate progress modes
  • Both circular and linear progress bars
  • Ability to set a delay before showing
  • Ability to set a minimum duration to show the dialog
  • Follows Dark and Light modes automatically
  • Adapts to your app's theme colors
  • Retains state between orientation changes
  • Smooth Material animations and transitions
  • Lightweight and easy to implement
  • Fully interoperable with Java