Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

AlertDialog

Yanndroid edited this page Jan 27, 2022 · 2 revisions

de.dlyt.yanndroid.oneui.dialog.AlertDialog

Samsung's AlertDialogs.


Usage is the same as the default AlertDialog, with a few additional Methods for the Builder.

Methods

Set the color of the button.

public Builder setPositiveButtonColor(@ColorInt int color)
public Builder setNegativeButtonColor(@ColorInt int color)
public Builder setNeutralButtonColor(@ColorInt int color)

Show a ProgressBar at the button's position on click. If you apply this, don't forget to dismiss the dialog after your process is done.

public Builder setPositiveButtonProgress(boolean progress)
public Builder setNegativeButtonProgress(boolean progress)
public Builder setNeutralButtonProgress(boolean progress)
Clone this wiki locally