public static class BottomDialog.Builder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected android.app.Activity |
activity |
protected android.app.Dialog |
bottomDialog |
protected java.lang.CharSequence |
btn_negative |
protected BottomDialog.ButtonCallback |
btn_negative_callback |
protected java.lang.CharSequence |
btn_positive |
protected BottomDialog.ButtonCallback |
btn_positive_callback |
protected java.lang.CharSequence |
content |
protected android.content.Context |
context |
protected android.view.View |
customView |
protected int |
customViewPaddingBottom |
protected int |
customViewPaddingLeft |
protected int |
customViewPaddingRight |
protected int |
customViewPaddingTop |
protected android.graphics.drawable.Drawable |
icon |
protected boolean |
isCancelable |
protected java.lang.CharSequence |
title |
| Constructor and Description |
|---|
Builder(android.content.Context context) |
protected android.app.Activity activity
protected android.content.Context context
protected android.app.Dialog bottomDialog
protected android.graphics.drawable.Drawable icon
protected java.lang.CharSequence title
protected java.lang.CharSequence content
protected java.lang.CharSequence btn_negative
protected java.lang.CharSequence btn_positive
protected BottomDialog.ButtonCallback btn_negative_callback
protected BottomDialog.ButtonCallback btn_positive_callback
protected android.view.View customView
protected int customViewPaddingLeft
protected int customViewPaddingTop
protected int customViewPaddingRight
protected int customViewPaddingBottom
protected boolean isCancelable
public BottomDialog.Builder setTitle(int titleRes)
public BottomDialog.Builder setTitle(java.lang.CharSequence title)
public BottomDialog.Builder setContent(int contentRes)
public BottomDialog.Builder setContent(java.lang.CharSequence content)
public BottomDialog.Builder setIcon(android.graphics.drawable.Drawable icon)
public BottomDialog.Builder setIcon(int iconRes)
public BottomDialog.Builder setPositiveText(int buttonTextRes)
public BottomDialog.Builder setPositiveText(java.lang.CharSequence buttonText)
public BottomDialog.Builder onPositive(BottomDialog.ButtonCallback buttonCallback)
public BottomDialog.Builder setNegativeText(int buttonTextRes)
public BottomDialog.Builder setNegativeText(java.lang.CharSequence buttonText)
public BottomDialog.Builder onNegative(BottomDialog.ButtonCallback buttonCallback)
public BottomDialog.Builder setCancelable(boolean cancelable)
public BottomDialog.Builder setCustomView(android.view.View customView)
public BottomDialog.Builder setCustomView(android.view.View customView, int left, int top, int right, int bottom)
public BottomDialog build()
public BottomDialog show()