public static class BottomSheetMaterialDialog.Builder
extends java.lang.Object
BottomSheetMaterialDialog.| Constructor and Description |
|---|
Builder(android.app.Activity activity) |
| Modifier and Type | Method and Description |
|---|---|
BottomSheetMaterialDialog |
build()
Build the
BottomSheetMaterialDialog. |
BottomSheetMaterialDialog.Builder |
setAnimation(int animationResId)
It sets the resource json to the
com.airbnb.lottie.LottieAnimationView. |
BottomSheetMaterialDialog.Builder |
setAnimation(java.lang.String fileName)
It sets the json file to the
com.airbnb.lottie.LottieAnimationView from assets. |
BottomSheetMaterialDialog.Builder |
setCancelable(boolean isCancelable) |
BottomSheetMaterialDialog.Builder |
setMessage(java.lang.String message) |
BottomSheetMaterialDialog.Builder |
setNegativeButton(java.lang.String name,
AbstractDialog.OnClickListener onClickListener)
Sets the Negative Button to BottomSheet Material Dialog without icon.
|
BottomSheetMaterialDialog.Builder |
setNegativeButton(java.lang.String name,
int icon,
AbstractDialog.OnClickListener onClickListener)
Sets the Negative Button to BottomSheet Material Dialog with icon
|
BottomSheetMaterialDialog.Builder |
setPositiveButton(java.lang.String name,
AbstractDialog.OnClickListener onClickListener)
Sets the Positive Button to BottomSheet Material Dialog without icon
|
BottomSheetMaterialDialog.Builder |
setPositiveButton(java.lang.String name,
int icon,
AbstractDialog.OnClickListener onClickListener)
Sets the Positive Button to BottomSheet Material Dialog with icon
|
BottomSheetMaterialDialog.Builder |
setTitle(java.lang.String title) |
public Builder(android.app.Activity activity)
activity - where BottomSheet Material Dialog is to be built.public BottomSheetMaterialDialog.Builder setTitle(java.lang.String title)
title - Sets the Title of BottomSheet Material Dialog.public BottomSheetMaterialDialog.Builder setMessage(java.lang.String message)
message - Sets the Message of BottomSheet Material Dialog.public BottomSheetMaterialDialog.Builder setCancelable(boolean isCancelable)
isCancelable - Sets cancelable property of BottomSheet Material Dialog.public BottomSheetMaterialDialog.Builder setPositiveButton(java.lang.String name, AbstractDialog.OnClickListener onClickListener)
name - sets the name/label of button.onClickListener - interface for callback event on click of button.public BottomSheetMaterialDialog.Builder setPositiveButton(java.lang.String name, int icon, AbstractDialog.OnClickListener onClickListener)
name - sets the name/label of button.icon - sets the resource icon for button.onClickListener - interface for callback event on click of button.public BottomSheetMaterialDialog.Builder setNegativeButton(java.lang.String name, AbstractDialog.OnClickListener onClickListener)
name - sets the name/label of button.onClickListener - interface for callback event on click of button.this, for chaining.public BottomSheetMaterialDialog.Builder setNegativeButton(java.lang.String name, int icon, AbstractDialog.OnClickListener onClickListener)
name - sets the name/label of button.icon - sets the resource icon for button.onClickListener - interface for callback event on click of button.public BottomSheetMaterialDialog.Builder setAnimation(int animationResId)
com.airbnb.lottie.LottieAnimationView.animationResId - sets the resource to com.airbnb.lottie.LottieAnimationView.public BottomSheetMaterialDialog.Builder setAnimation(java.lang.String fileName)
com.airbnb.lottie.LottieAnimationView from assets.fileName - sets the file from assets to com.airbnb.lottie.LottieAnimationView.public BottomSheetMaterialDialog build()
BottomSheetMaterialDialog.