public interface MaterialDialogDecorator extends Dialog
| Modifier and Type | Method and Description |
|---|---|
android.graphics.drawable.Drawable |
getBackground()
Returns the background of the dialog.
|
android.graphics.drawable.Drawable |
getIcon()
Returns the icon of the dialog.
|
java.lang.CharSequence |
getMessage()
Returns the message of the dialog.
|
int |
getMessageColor()
Returns the color of the message of the dialog.
|
java.lang.CharSequence |
getTitle()
Returns the title of the dialog.
|
int |
getTitleColor()
Returns the color of the title of the dialog.
|
void |
setBackground(android.graphics.Bitmap background)
Sets the background of the dialog.
|
void |
setBackground(int resourceId)
Sets the background of the dialog.
|
void |
setBackgroundColor(int color)
Sets the background color of the dialog.
|
void |
setCustomMessage(int resourceId)
Sets the custom view, which should be used to show the message of the dialog.
|
void |
setCustomMessage(android.view.View view)
Sets the custom view, which should be used to show the message of the dialog.
|
void |
setCustomTitle(int resourceId)
Sets the custom view, which should be used to show the title of the dialog.
|
void |
setCustomTitle(android.view.View view)
Sets the custom view, which should be used to show the title of the dialog.
|
void |
setIcon(android.graphics.Bitmap icon)
Sets the icon of the dialog.
|
void |
setIcon(int resourceId)
Sets the icon of the dialog.
|
void |
setIconAttribute(int attributeId)
Set the icon of the dialog.
|
void |
setMessage(java.lang.CharSequence message)
Sets the message of the dialog.
|
void |
setMessage(int resourceId)
Sets the message of the dialog.
|
void |
setMessageColor(int color)
Sets the color of the message of the dialog.
|
void |
setTitle(java.lang.CharSequence title)
Sets the title of the dialog.
|
void |
setTitle(int resourceId)
Sets the title of the dialog.
|
void |
setTitleColor(int color)
Sets the color of the title of the dialog.
|
void |
setView(int resourceId)
Sets the custom view, which should be shown by the dialog.
|
void |
setView(android.view.View view)
Sets the custom view, which should be shown by the dialog.
|
getContextandroid.graphics.drawable.Drawable getIcon()
Drawable or null, if no
icon has been setvoid setIcon(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 shownvoid setIcon(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 resourcevoid setIconAttribute(int attributeId)
attributeId - The id of the theme attribute, which supplies the icon, which should be set, as an
Integer value. The id must point to a valid drawable resourceint getTitleColor()
Integer valuevoid setTitleColor(int color)
color - The color, which should be set, as an Integer valueint getMessageColor()
Integer valuevoid setMessageColor(int color)
color - The color, which should be set, as an Integer valueandroid.graphics.drawable.Drawable getBackground()
Drawable or null, if
no background has been setvoid setBackground(android.graphics.Bitmap background)
background - The background, which should be set, as an instance of the class Bitmap or
null, if no background should be setvoid setBackground(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 resourcevoid setBackgroundColor(int color)
color - The background color, which should be set, as an Integer valuevoid setCustomTitle(android.view.View view)
view - The view, which should be set, as an instance of the class View or null, if
no custom view should be used to show the titlevoid setCustomTitle(int resourceId)
resourceId - The resource id of the view, which should be set, as an Integer value. The
resource id must correspond to a valid layout resourcevoid setCustomMessage(android.view.View view)
view - The view, which should be set, as an instance of the class View or null, if
no custom view should be used to show the titlevoid setCustomMessage(int resourceId)
resourceId - The resource id of the view, which should be set, as an Integer value. The
resource id must correspond to a valid layout resourcevoid setView(android.view.View view)
view - The view, which should be set, as an instance of the class View or null, if
no custom view should be shownvoid setView(int resourceId)
resourceId - The resource id of the view, which should be set, as an Integer value. The
resource id must correspond to a valid layout resourcejava.lang.CharSequence getMessage()
CharSequence or null, if
no message has been setvoid setMessage(java.lang.CharSequence message)
message - The message, which should be set, as an instance of the type CharSequence or
null, if no message should be shownvoid setMessage(int resourceId)
resourceId - The resource id of the message, which should be set, as an Integer value. The
resource id must correspond to a valid string resourcejava.lang.CharSequence getTitle()
CharSequence or null, if
no title has been setvoid setTitle(java.lang.CharSequence title)
title - The title, which should be set, as an instance of the type CharSequence or
null, if no title should be setvoid setTitle(int resourceId)
resourceId - The resource id of the title, which should be set, as an Integer. The
resource id must correspond to a valid string resource