DialogType - The type of the dialog, which is created by the builderBuilderType - The type of the builderpublic abstract class AbstractHeaderDialogBuilder<DialogType extends HeaderDialog,BuilderType extends AbstractHeaderDialogBuilder<DialogType,?>> extends AbstractMaterialDialogBuilder<DialogType,BuilderType>
| Constructor and Description |
|---|
AbstractHeaderDialogBuilder(android.content.Context context)
Creates a new builder, which allows to create dialogs, which are designed according to
Android 5's Material Design guidelines even on pre-Lollipop devices and may contain a
header.
|
AbstractHeaderDialogBuilder(android.content.Context context,
int themeResourceId)
Creates a new builder, which allows to create dialogs, which are designed according to
Android 5's Material Design guidelines even on pre-Lollipop devices and may contain a
header.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
obtainStyledAttributes(int themeResourceId)
Obtains all relevant attributes from the current theme.
|
BuilderType |
setHeaderBackground(android.graphics.Bitmap background)
Sets the background of the header of the dialog, which is created by the builder.
|
BuilderType |
setHeaderBackground(int resourceId)
Sets the background of the header of the dialog, which is created by the builder.
|
BuilderType |
setHeaderBackgroundColor(int color)
Sets the background color of the header of the dialog, which is created by the builder.
|
BuilderType |
setHeaderDividerColor(int color)
Sets the color of the divider of the header of the dialog, which is created by the builder.
|
BuilderType |
setHeaderHeight(int height)
Sets the height of the header of the dialog, which is created by the builder.
|
BuilderType |
setHeaderIcon(android.graphics.Bitmap icon)
Sets the icon of the header of the dialog, which is created by the builder.
|
BuilderType |
setHeaderIcon(int resourceId)
Sets the icon of the header of the dialog, which is created by the builder.
|
BuilderType |
showHeader(boolean show)
Sets, whether the header of the dialog, which is created by the builder, should be shown, or
not.
|
BuilderType |
showHeaderDivider(boolean show)
Sets, wehther the divider of the header of the dialog, which is created by the builder,
should be shown, or not.
|
create, getContext, getDialog, onCreateDialog, self, setBackground, setBackground, setBackgroundColor, setCancelable, setCustomMessage, setCustomMessage, setCustomTitle, setCustomTitle, setIcon, setIcon, setIconAttribute, setMessage, setMessage, setMessageColor, setOnCancelListener, setOnDismissListener, setOnShowListener, setTitle, setTitle, setTitleColor, setView, setViewpublic AbstractHeaderDialogBuilder(android.content.Context context)
context - The context, which should be used by the builder, as an instance of the class Context. The context may not be nullpublic AbstractHeaderDialogBuilder(android.content.Context context,
int themeResourceId)
context - The context, which should be used by the builder, as an instance of the class Context. The context may not be nullthemeResourceId - The resource id of the theme, which should be used by the dialog, as an Integer value. The resource id must correspond to a valid themepublic final BuilderType showHeader(boolean show)
show - True, if the header of the dialog should be shown, false otherwisepublic final BuilderType setHeaderHeight(int height)
height - The height, which should be set, in pixels as an Integer value. The height
must be at least 0public final BuilderType setHeaderBackgroundColor(int color)
color - The background color, which should be set, as an Integer valuepublic final BuilderType setHeaderBackground(int resourceId)
resourceId - The resource id of the background, which should be set, as an Integer value.
The resource id must correspond to a valid drawable resourcepublic final BuilderType setHeaderBackground(android.graphics.Bitmap background)
background - The background, which should be set, as an instance of the class Bitmap. The
background may not be nullpublic final BuilderType setHeaderIcon(int resourceId)
resourceId - The resource id of the icon, which should be set, as an Integer value. The
resource id must correspond to a valid drawable resourcepublic final BuilderType setHeaderIcon(android.graphics.Bitmap icon)
icon - The icon, which should be set, as an instance of the class Bitmap or null, if
no icon should be setpublic final BuilderType setHeaderDividerColor(int color)
color - The color, which should be set, as an Integer valuepublic final BuilderType showHeaderDivider(boolean show)
show - True, if the divider of the dialog's header should be shown, false otherwiseprotected void obtainStyledAttributes(int themeResourceId)
AbstractMaterialDialogBuilderobtainStyledAttributes in class AbstractMaterialDialogBuilder<DialogType extends HeaderDialog,BuilderType extends AbstractHeaderDialogBuilder<DialogType,?>>themeResourceId - The resource id of the theme, which should be used by the dialog, as an Integer value. The resource id must correspond to a valid style resource