-
Notifications
You must be signed in to change notification settings - Fork 4
Attributes
K M Rejowan Ahmmed edited this page Dec 7, 2022
·
9 revisions
Keyword | Description | Values |
---|---|---|
withIcon |
using icon as header | Context |
withImage |
using image as header | Context |
withAnimation |
using animation as header | Context |
setIcon |
set Icon |
int res |
setImage |
set Image |
int res |
setAnimation |
set Animation |
int res |
setTitle |
set Title | String |
setTitleTextSize |
set Title Text Size |
int sp |
setTitleTextColor |
set Title Text Color |
String Hex Color |
setTitleTextStyle |
set Title Text Style |
int STYLE_BOLD etc. |
setDescription |
set Descriptin | String |
setDescriptionTextColor |
set Description Text Color |
String Hex Color |
setDescriptionTextSize |
set Description Text Size |
int sp |
setDescriptionTextStyle |
set Description Text Style |
int STYLE_BOLD etc. |
setPositiveButtonText |
set Positive Button Text and OnClickListener
|
String View.OnClickListener
|
setNegativeButtonText |
set Negative Button Text and OnClickListener
|
String View.OnClickListener
|
setCloseIconListener |
set OnClickListener
|
View.OnClickListener |
setCloseIcon |
set Close Icon |
int res |
setCloseIconColor |
set Close Icon Color |
String Hex Color |
setCloseIconSize |
set Close Icon Size |
int dp |
setPositiveButtonColor |
set Positive Button Background Color |
String Hex Color |
setPositiveButtonRadius |
set Positive Button Corner Radius |
int dp |
setPositiveButtonBorderColor |
set Positive Button Border Color |
String Hex Color |
setPositiveButtonBorderWidth |
set Positive Button Border Width |
int dp |
setPositiveButtonTextColor |
set Positive Button Text Color |
String Hex Color |
setPositiveButtonTextSize |
set Positive Button Text Size |
int sp |
setPositiveButtonTextStyle |
set Positive Button Text Style | 'STYLE_BOLD', 'STYLE_ITALIC' etc See Enums |
setNegativeButtonColor |
set Negative Button Background Color |
String Hex Color |
setNegativeButtonRadius |
set Negative Button Corner Radius |
int dp |
setNegativeButtonBorderColor |
set Negative Button Border Color |
String Hex Color |
setNegativeButtonBorderWidth |
set Negative Button Border Width |
int dp |
setNegativeButtonTextColor |
set Negative Button Text Color |
String Hex Color |
setNegativeButtonTextSize |
set Negative Button Text Size |
int sp |
setNegativeButtonTextStyle |
set Negative Button Text Style | 'STYLE_BOLD', 'STYLE_ITALIC' etc See Enums |
setDialogBackgroundColor |
Dialog Background Color |
String Hex Color |
setDialogRadius |
Dialog Radius |
int dp |
setDialogPosition |
Dialog Position | 'POSITION_CENTER' See Enums |
setPadding |
Dialog Padding |
int dp |
setPrimaryColor |
Primary Color (Changes Major Colors) |
String Hex Color |
isCancelable |
Dialog will be canceled if touched outside | boolean |
hideNegativeButton |
Hide negative button | boolean |
hidePositiveButton |
Hide positive button | boolean |
hideDescription |
Hide description | boolean |
hideTitle |
Hide title | boolean |
hideCloseIcon |
Hide close icon | boolean |
show() |
Method to show dialog | void |
Usage | Keyword | Value |
---|---|---|
Dialog Position | POSITION_CENTER | 1 |
Dialog Position | POSITION_TOP | 2 |
Dialog Position | POSITION_BOTTOM | 3 |
Text Style | STYLE_NORMAL | 1 |
Text Style | STYLE_BOLD | 2 |
Text Style | STYLE_ITALIC | 3 |
Text Style | STYLE_BOLD_ITALIC | 4 |