public class AbstractDialog extends java.lang.Object implements DialogInterface
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractDialog.OnClickListener
|
Modifier and Type | Field and Description |
---|---|
static int |
BUTTON_NEGATIVE
|
static int |
BUTTON_POSITIVE
|
protected android.app.Activity
|
mActivity
|
protected java.lang.String |
mAnimationFile
|
protected int |
mAnimationResId
|
protected LottieAnimationView |
mAnimationView
|
protected boolean |
mCancelable
|
protected android.app.Dialog |
mDialog
|
protected java.lang.String |
message
|
protected DialogButton
|
mNegativeButton
|
protected OnCancelListener
|
mOnCancelListener
|
protected OnDismissListener
|
mOnDismissListener
|
protected OnShowListener
|
mOnShowListener
|
protected DialogButton
|
mPositiveButton
|
static int |
NO_ANIMATION
|
static int |
NO_ICON
|
protected java.lang.String |
title
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractDialog(android.app.Activity mActivity,
java.lang.String title,
java.lang.String message,
boolean mCancelable,
DialogButton mPositiveButton,
DialogButton mNegativeButton,
int mAnimationResId,
java.lang.String mAnimationFile)
|
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Cancels the Dialog
|
protected android.view.View |
createView(android.view.LayoutInflater inflater,
android.view.ViewGroup container)
|
void |
dismiss()
Dismisses the Dialog
|
LottieAnimationView |
getAnimationView()
|
void |
setOnCancelListener(OnCancelListener onCancelListener)
|
void |
setOnDismissListener(OnDismissListener onDismissListener)
|
void |
setOnShowListener(OnShowListener onShowListener)
|
void |
show()
Displays the Dialog
|
public static final int BUTTON_POSITIVE
public static final int BUTTON_NEGATIVE
public static final int NO_ICON
public static final int NO_ANIMATION
protected android.app.Dialog mDialog
protected android.app.Activity mActivity
protected java.lang.String title
protected java.lang.String message
protected boolean mCancelable
protected DialogButton mPositiveButton
protected DialogButton mNegativeButton
protected int mAnimationResId
protected java.lang.String mAnimationFile
protected LottieAnimationView mAnimationView
protected OnDismissListener mOnDismissListener
protected OnCancelListener mOnCancelListener
protected OnShowListener mOnShowListener
protected AbstractDialog(android.app.Activity mActivity, java.lang.String title, java.lang.String message, boolean mCancelable, DialogButton mPositiveButton, DialogButton mNegativeButton, int mAnimationResId, java.lang.String mAnimationFile)
protected android.view.View createView(android.view.LayoutInflater inflater, android.view.ViewGroup container)
public void show()
public void cancel()
cancel
in
interface DialogInterface
public void dismiss()
dismiss
in
interface DialogInterface
public void setOnShowListener(OnShowListener onShowListener)
onShowListener
- interface for callback events
when dialog is showed.
public void setOnCancelListener(OnCancelListener onCancelListener)
onCancelListener
- interface for callback
events when dialog is cancelled.
public void setOnDismissListener(OnDismissListener onDismissListener)
onDismissListener
- interface for callback
events when dialog is dismissed;
public LottieAnimationView getAnimationView()
LottieAnimationView
from the Dialog.