Android Programming Press on the image to return to the main documentation page.

MaterialDialogs

Written by Markus Stipp

List of types:

ColorChooserDialog
ColorChooserDialogBuilder
FileChooserDialog
FileChooserDialogBuilder
FolderChooserDialog
FolderChooserDialogBuilder
MaterialDialog
MaterialDialogBuilder
MaterialDialogsManager
MaterialSimpleListItem

ColorChooserDialog


Events:

None

Members:


  Dismiss

  IsAccentMode As Boolean

  Show

Members description:

Dismiss
IsAccentMode As Boolean
Show

ColorChooserDialogBuilder


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  AccentMode (AccentMode As Boolean) As ColorChooserDialogBuilder

  AllowUserColorInput (Enable As Boolean) As ColorChooserDialogBuilder

  AllowUserColorInputAlpha (Enable As Boolean) As ColorChooserDialogBuilder

  BackButtonRes (StringResourceName As String) As ColorChooserDialogBuilder

  Build As ColorChooserDialog

  CancelButtonRes (StringResourceName As String) As ColorChooserDialogBuilder

  CustomButtonRes (StringResourceName As String) As ColorChooserDialogBuilder

  CustomColors (PrimaryColors() As Int, SubColors(,) As Int) As ColorChooserDialogBuilder

  DoneButtonRes (StringResourceName As String) As ColorChooserDialogBuilder

  DynamicButtonColor (Enable As Boolean) As ColorChooserDialogBuilder

  Initialize

  PreSelect (Color As Int) As ColorChooserDialogBuilder

  Show As ColorChooserDialog

  Theme (Theme As com.afollestad.materialdialogs.Theme) As ColorChooserDialogBuilder

  THEME_DARK As com.afollestad.materialdialogs.Theme

  THEME_LIGHT As com.afollestad.materialdialogs.Theme

Members description:

AccentMode (AccentMode As Boolean) As ColorChooserDialogBuilder
AllowUserColorInput (Enable As Boolean) As ColorChooserDialogBuilder
AllowUserColorInputAlpha (Enable As Boolean) As ColorChooserDialogBuilder
BackButtonRes (StringResourceName As String) As ColorChooserDialogBuilder
Build As ColorChooserDialog
CancelButtonRes (StringResourceName As String) As ColorChooserDialogBuilder
CustomButtonRes (StringResourceName As String) As ColorChooserDialogBuilder
CustomColors (PrimaryColors() As Int, SubColors(,) As Int) As ColorChooserDialogBuilder
DoneButtonRes (StringResourceName As String) As ColorChooserDialogBuilder
DynamicButtonColor (Enable As Boolean) As ColorChooserDialogBuilder
Initialize
PreSelect (Color As Int) As ColorChooserDialogBuilder
Show As ColorChooserDialog
Theme (Theme As com.afollestad.materialdialogs.Theme) As ColorChooserDialogBuilder
THEME_DARK As com.afollestad.materialdialogs.Theme
THEME_LIGHT As com.afollestad.materialdialogs.Theme

FileChooserDialog


Events:

None

Members:


  Dismiss

  InitialPath As String [read only]

  Show

  Tag As String [read only]

Members description:

Dismiss
InitialPath As String [read only]
Show
Tag As String [read only]

FileChooserDialogBuilder


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  Build As FileChooserDialog

  CancelButtonRes (StringResourceName As String) As FileChooserDialogBuilder

  ExtensionsFilter (Extensions As List) As FileChooserDialogBuilder

  GoUp (GoUpLabel As String) As FileChooserDialogBuilder

  Initialize

  InitialPath (s As String) As FileChooserDialogBuilder

  MimeType (s As String) As FileChooserDialogBuilder

  Show As FileChooserDialog

  Tag (s As String) As FileChooserDialogBuilder

Members description:

Build As FileChooserDialog
CancelButtonRes (StringResourceName As String) As FileChooserDialogBuilder
ExtensionsFilter (Extensions As List) As FileChooserDialogBuilder
GoUp (GoUpLabel As String) As FileChooserDialogBuilder
Initialize
InitialPath (s As String) As FileChooserDialogBuilder
MimeType (s As String) As FileChooserDialogBuilder
Show As FileChooserDialog
Tag (s As String) As FileChooserDialogBuilder

FolderChooserDialog


Events:

None

Members:


  Dismiss

  Show

  Tag As String [read only]

Members description:

Dismiss
Show
Tag As String [read only]

FolderChooserDialogBuilder


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  AllowNewFolder (Allow As Boolean, StringResourceName As String) As FolderChooserDialogBuilder

  Build As FolderChooserDialog

  CancelButtonRes (StringResourceName As String) As FolderChooserDialogBuilder

  ChooseButtonRes (StringResourceName As String) As FolderChooserDialogBuilder

  GoUpLabel (GoUpLabel As String) As FolderChooserDialogBuilder

  Initialize

  InitialPath (s As String) As FolderChooserDialogBuilder

  Show As FolderChooserDialog

  Tag (s As String) As FolderChooserDialogBuilder

Members description:

AllowNewFolder (Allow As Boolean, StringResourceName As String) As FolderChooserDialogBuilder
Build As FolderChooserDialog
CancelButtonRes (StringResourceName As String) As FolderChooserDialogBuilder
ChooseButtonRes (StringResourceName As String) As FolderChooserDialogBuilder
GoUpLabel (GoUpLabel As String) As FolderChooserDialogBuilder
Initialize
InitialPath (s As String) As FolderChooserDialogBuilder
Show As FolderChooserDialog
Tag (s As String) As FolderChooserDialogBuilder

MaterialDialog


Events:

ButtonPressed (Dialog As MaterialDialog, Action As String)
PromptCheckChanged (Checked As Boolean)
InputChanged (Dialog As MaterialDialog, Input As String)
ItemSelected (Dialog As MaterialDialog, Position As Int, Text As String)
ItemLongSelected (Dialog As MaterialDialog, Position as Int, Text As String)
SingleChoiceItemSelected (Dialog As MaterialDialog, Position As Int, Text As String)
MultiChoiceItemSelected (Dialog As MaterialDialog, SelectedIndexes As List, SelectedText As List) As Boolean
SimpleItemSelected (Dialog As MaterialDialog, Position As Int, Item As MaterialSimpleListItem)
OnShow (Dialog As MaterialDialog)
OnDismiss (Dialog As MaterialDialog)
OnCancel (Dialog As MaterialDialog)
CustomViewReady (Dialog As MaterialDialog, CustomView As Panel, ParentHeight As Int)

Members:


  ACTION_NEGATIVE As String

  ACTION_NEUTRAL As String

  ACTION_POSITIVE As String

  AddItem (Item As CharSequence)

  AddItemAt (Index As Int, Item As CharSequence)

  ClearSelectedIndices

  ClearSelectedIndices2 (SendCallBack As Boolean)

  Content As CharSequence [write only]

  CurrentProgress As Int

  Dismiss

  EnableActionButton (Button As String, Enable As Boolean)

  Hide

  IncrementProgress (By As Int)

  IsShowing As Boolean

  Items As List [read only]

  MaxProgress As Int

  NotifyItemChanged (Index As Int)

  NotifyItemInserted (Index As Int)

  NotifyItemsChanged

  PromptCheckBoxChecked As Boolean

  RemoveItem (Index As Int)

  SelectedIndex As Int [read only]

  SelectedIndices As List [read only]

  Show

  Tag As Object [read only]

Members description:

ACTION_NEGATIVE As String
ACTION_NEUTRAL As String
ACTION_POSITIVE As String
AddItem (Item As CharSequence)
AddItemAt (Index As Int, Item As CharSequence)
ClearSelectedIndices
ClearSelectedIndices2 (SendCallBack As Boolean)
Content As CharSequence [write only]
CurrentProgress As Int
Dismiss
EnableActionButton (Button As String, Enable As Boolean)
Hide
IncrementProgress (By As Int)
IsShowing As Boolean
Items As List [read only]
MaxProgress As Int
NotifyItemChanged (Index As Int)
NotifyItemInserted (Index As Int)
NotifyItemsChanged
PromptCheckBoxChecked As Boolean
RemoveItem (Index As Int)
SelectedIndex As Int [read only]
SelectedIndices As List [read only]
Show
Tag As Object [read only]

MaterialDialogBuilder


This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

None

Members:


  ACTION_NEGATIVE As String

  ACTION_NEUTRAL As String

  ACTION_POSITIVE As String

  AddSimpleItem (Item As MaterialSimpleListItem)

  AlwaysCallInputCallback As MaterialDialogBuilder

  AlwaysCallMultiChoiceCallback As MaterialDialogBuilder

  AlwaysCallSingleChoiceCallback As MaterialDialogBuilder

  AutoDismiss (Dismiss As Boolean) As MaterialDialogBuilder

  BackgroundColor (Color As Int) As MaterialDialogBuilder

  Build As MaterialDialog

  ButtonRippleColor (Color As Int) As MaterialDialogBuilder

  ButtonsGravity (Gravity As com.afollestad.materialdialogs.GravityEnum) As MaterialDialogBuilder

  ButtonStackedGravity (gravityEnum As com.afollestad.materialdialogs.GravityEnum) As MaterialDialogBuilder

  Cancelable (Cancelable As Boolean) As MaterialDialogBuilder

  CanceledOnTouchOutside (CanceledOnTouchOutside As Boolean) As MaterialDialogBuilder

  CheckBoxPrompt (Prompt As CharSequence, InitiallyChecked As Boolean) As MaterialDialogBuilder

  ClearSimpleItems

  Content (Text As CharSequence) As MaterialDialogBuilder

  ContentColor (Color As Int) As MaterialDialogBuilder

  ContentGravity (Gravity As com.afollestad.materialdialogs.GravityEnum) As MaterialDialogBuilder

  ContentLineSpacing (Multiplier As Float) As MaterialDialogBuilder

  CustomView (WrapInScrollView As Boolean, Height As Int) As MaterialDialogBuilder

  DividerColor (Color As Int) As MaterialDialogBuilder

  ForceStacking (Stacking As Boolean) As MaterialDialogBuilder

  GRAVITY_CENTER As com.afollestad.materialdialogs.GravityEnum

  GRAVITY_END As com.afollestad.materialdialogs.GravityEnum

  GRAVITY_START As com.afollestad.materialdialogs.GravityEnum

  Icon (drawable As android.graphics.drawable.Drawable) As MaterialDialogBuilder

  IconRes (ResourceName As String) As MaterialDialogBuilder

  Initialize (EventName As String)

  Input (Hint As CharSequence, Prefill As CharSequence) As MaterialDialogBuilder

  Input2 (Hint As CharSequence, Prefill As CharSequence, AllowEmptyInput As Boolean) As MaterialDialogBuilder

  InputRange (Min As Int, Max As Int) As MaterialDialogBuilder

  InputRange2 (Min As Int, Max As Int, ErrorColor As Int) As MaterialDialogBuilder

  InputType (Type As Int) As MaterialDialogBuilder

  Items (ItemArray() As CharSequence) As MaterialDialogBuilder

  ItemsCallback As MaterialDialogBuilder

  ItemsCallbackMultiChoice (SelectedItems As List) As MaterialDialogBuilder

  ItemsCallbackSingleChoice (SelectedIndex As Int) As MaterialDialogBuilder

  ItemsColor (Color As Int) As MaterialDialogBuilder

  ItemsDisabledIndices (DisabledItems As List) As MaterialDialogBuilder

  ItemsGravity (Gravity As com.afollestad.materialdialogs.GravityEnum) As MaterialDialogBuilder

  ItemsIds (array() As Int) As MaterialDialogBuilder

  ItemsLongCallback As MaterialDialogBuilder

  LimitIconToDefaultSize As MaterialDialogBuilder

  LinkColor (Color As Int) As MaterialDialogBuilder

  MaxIconSize (MaxSize As Int) As MaterialDialogBuilder

  NegativeColor (Color As Int) As MaterialDialogBuilder

  NegativeText (Text As CharSequence) As MaterialDialogBuilder

  NeutralColor (Color As Int) As MaterialDialogBuilder

  NeutralText (Text As CharSequence) As MaterialDialogBuilder

  PositiveColor (Color As Int) As MaterialDialogBuilder

  PositiveText (Text As CharSequence) As MaterialDialogBuilder

  Progress (Indeterminate As Boolean, Max As Int) As MaterialDialogBuilder

  Progress2 (Indeterminate As Boolean, Max As Int, ShowMinMax As Boolean) As MaterialDialogBuilder

  ProgressIndeterminateStyle (Horizontal As Boolean) As MaterialDialogBuilder

  ProgressNumberFormat (Format As String) As MaterialDialogBuilder

  ProgressPercentFormat (Format As java.text.NumberFormat) As MaterialDialogBuilder

  Show As MaterialDialog

  SimpleItemCount As Int [read only]

  Tag (TagValue As Object) As MaterialDialogBuilder

  Theme (ThemeType As com.afollestad.materialdialogs.Theme) As MaterialDialogBuilder

  THEME_DARK As com.afollestad.materialdialogs.Theme

  THEME_LIGHT As com.afollestad.materialdialogs.Theme

  Title (Title As CharSequence) As MaterialDialogBuilder

  TitleColor (Color As Int) As MaterialDialogBuilder

  TitleGravity (Gravity As com.afollestad.materialdialogs.GravityEnum) As MaterialDialogBuilder

  TYPE_CLASS_DATETIME As Int

  TYPE_CLASS_NUMBER As Int

  TYPE_CLASS_PHONE As Int

  TYPE_CLASS_TEXT As Int

  TYPE_DATETIME_VARIATION_DATE As Int

  TYPE_DATETIME_VARIATION_NORMAL As Int

  TYPE_DATETIME_VARIATION_TIME As Int

  TYPE_MASK_CLASS As Int

  TYPE_MASK_FLAGS As Int

  TYPE_MASK_VARIATION As Int

  TYPE_NULL As Int

  TYPE_NUMBER_FLAG_DECIMAL As Int

  TYPE_NUMBER_FLAG_SIGNED As Int

  TYPE_TEXT_FLAG_AUTO_COMPLETE As Int

  TYPE_TEXT_FLAG_AUTO_CORRECT As Int

  TYPE_TEXT_FLAG_CAP_CHARACTERS As Int

  TYPE_TEXT_FLAG_CAP_SENTENCES As Int

  TYPE_TEXT_FLAG_CAP_WORDS As Int

  TYPE_TEXT_FLAG_IME_MULTI_LINE As Int

  TYPE_TEXT_FLAG_MULTI_LINE As Int

  TYPE_TEXT_VARIATION_EMAIL_ADDRESS As Int

  TYPE_TEXT_VARIATION_EMAIL_SUBJECT As Int

  TYPE_TEXT_VARIATION_LONG_MESSAGE As Int

  TYPE_TEXT_VARIATION_NORMAL As Int

  TYPE_TEXT_VARIATION_PASSWORD As Int

  TYPE_TEXT_VARIATION_PERSON_NAME As Int

  TYPE_TEXT_VARIATION_POSTAL_ADDRESS As Int

  TYPE_TEXT_VARIATION_SHORT_MESSAGE As Int

  TYPE_TEXT_VARIATION_URI As Int

  TYPE_TEXT_VARIATION_WEB_EDIT_TEXT As Int

  Typeface (Medium As android.graphics.Typeface, Regular As android.graphics.Typeface) As MaterialDialogBuilder

  WidgetColor (Color As Int) As MaterialDialogBuilder

Members description:

ACTION_NEGATIVE As String
ACTION_NEUTRAL As String
ACTION_POSITIVE As String
AddSimpleItem (Item As MaterialSimpleListItem)
AlwaysCallInputCallback As MaterialDialogBuilder
AlwaysCallMultiChoiceCallback As MaterialDialogBuilder
AlwaysCallSingleChoiceCallback As MaterialDialogBuilder
AutoDismiss (Dismiss As Boolean) As MaterialDialogBuilder
BackgroundColor (Color As Int) As MaterialDialogBuilder
Build As MaterialDialog
ButtonRippleColor (Color As Int) As MaterialDialogBuilder
ButtonsGravity (Gravity As com.afollestad.materialdialogs.GravityEnum) As MaterialDialogBuilder
ButtonStackedGravity (gravityEnum As com.afollestad.materialdialogs.GravityEnum) As MaterialDialogBuilder
Cancelable (Cancelable As Boolean) As MaterialDialogBuilder
CanceledOnTouchOutside (CanceledOnTouchOutside As Boolean) As MaterialDialogBuilder
CheckBoxPrompt (Prompt As CharSequence, InitiallyChecked As Boolean) As MaterialDialogBuilder
ClearSimpleItems
Content (Text As CharSequence) As MaterialDialogBuilder
ContentColor (Color As Int) As MaterialDialogBuilder
ContentGravity (Gravity As com.afollestad.materialdialogs.GravityEnum) As MaterialDialogBuilder
ContentLineSpacing (Multiplier As Float) As MaterialDialogBuilder
CustomView (WrapInScrollView As Boolean, Height As Int) As MaterialDialogBuilder
DividerColor (Color As Int) As MaterialDialogBuilder
ForceStacking (Stacking As Boolean) As MaterialDialogBuilder
GRAVITY_CENTER As com.afollestad.materialdialogs.GravityEnum
GRAVITY_END As com.afollestad.materialdialogs.GravityEnum
GRAVITY_START As com.afollestad.materialdialogs.GravityEnum
Icon (drawable As android.graphics.drawable.Drawable) As MaterialDialogBuilder
IconRes (ResourceName As String) As MaterialDialogBuilder
Initialize (EventName As String)
Input (Hint As CharSequence, Prefill As CharSequence) As MaterialDialogBuilder
Input2 (Hint As CharSequence, Prefill As CharSequence, AllowEmptyInput As Boolean) As MaterialDialogBuilder
InputRange (Min As Int, Max As Int) As MaterialDialogBuilder
InputRange2 (Min As Int, Max As Int, ErrorColor As Int) As MaterialDialogBuilder
InputType (Type As Int) As MaterialDialogBuilder
Items (ItemArray() As CharSequence) As MaterialDialogBuilder
ItemsCallback As MaterialDialogBuilder
ItemsCallbackMultiChoice (SelectedItems As List) As MaterialDialogBuilder
ItemsCallbackSingleChoice (SelectedIndex As Int) As MaterialDialogBuilder
ItemsColor (Color As Int) As MaterialDialogBuilder
ItemsDisabledIndices (DisabledItems As List) As MaterialDialogBuilder
ItemsGravity (Gravity As com.afollestad.materialdialogs.GravityEnum) As MaterialDialogBuilder
ItemsIds (array() As Int) As MaterialDialogBuilder
ItemsLongCallback As MaterialDialogBuilder
LimitIconToDefaultSize As MaterialDialogBuilder
LinkColor (Color As Int) As MaterialDialogBuilder
MaxIconSize (MaxSize As Int) As MaterialDialogBuilder
NegativeColor (Color As Int) As MaterialDialogBuilder
NegativeText (Text As CharSequence) As MaterialDialogBuilder
NeutralColor (Color As Int) As MaterialDialogBuilder
NeutralText (Text As CharSequence) As MaterialDialogBuilder
PositiveColor (Color As Int) As MaterialDialogBuilder
PositiveText (Text As CharSequence) As MaterialDialogBuilder
Progress (Indeterminate As Boolean, Max As Int) As MaterialDialogBuilder
Progress2 (Indeterminate As Boolean, Max As Int, ShowMinMax As Boolean) As MaterialDialogBuilder
ProgressIndeterminateStyle (Horizontal As Boolean) As MaterialDialogBuilder
ProgressNumberFormat (Format As String) As MaterialDialogBuilder
Change the format of the small text showing current and maximum units of progress. The
default is "%1d/%2d".
ProgressPercentFormat (Format As java.text.NumberFormat) As MaterialDialogBuilder
Show As MaterialDialog
SimpleItemCount As Int [read only]
Tag (TagValue As Object) As MaterialDialogBuilder
Theme (ThemeType As com.afollestad.materialdialogs.Theme) As MaterialDialogBuilder
THEME_DARK As com.afollestad.materialdialogs.Theme
THEME_LIGHT As com.afollestad.materialdialogs.Theme
Title (Title As CharSequence) As MaterialDialogBuilder
TitleColor (Color As Int) As MaterialDialogBuilder
TitleGravity (Gravity As com.afollestad.materialdialogs.GravityEnum) As MaterialDialogBuilder
TYPE_CLASS_DATETIME As Int
TYPE_CLASS_NUMBER As Int
TYPE_CLASS_PHONE As Int
TYPE_CLASS_TEXT As Int
TYPE_DATETIME_VARIATION_DATE As Int
TYPE_DATETIME_VARIATION_NORMAL As Int
TYPE_DATETIME_VARIATION_TIME As Int
TYPE_MASK_CLASS As Int
TYPE_MASK_FLAGS As Int
TYPE_MASK_VARIATION As Int
TYPE_NULL As Int
TYPE_NUMBER_FLAG_DECIMAL As Int
TYPE_NUMBER_FLAG_SIGNED As Int
TYPE_TEXT_FLAG_AUTO_COMPLETE As Int
TYPE_TEXT_FLAG_AUTO_CORRECT As Int
TYPE_TEXT_FLAG_CAP_CHARACTERS As Int
TYPE_TEXT_FLAG_CAP_SENTENCES As Int
TYPE_TEXT_FLAG_CAP_WORDS As Int
TYPE_TEXT_FLAG_IME_MULTI_LINE As Int
TYPE_TEXT_FLAG_MULTI_LINE As Int
TYPE_TEXT_VARIATION_EMAIL_ADDRESS As Int
TYPE_TEXT_VARIATION_EMAIL_SUBJECT As Int
TYPE_TEXT_VARIATION_LONG_MESSAGE As Int
TYPE_TEXT_VARIATION_NORMAL As Int
TYPE_TEXT_VARIATION_PASSWORD As Int
TYPE_TEXT_VARIATION_PERSON_NAME As Int
TYPE_TEXT_VARIATION_POSTAL_ADDRESS As Int
TYPE_TEXT_VARIATION_SHORT_MESSAGE As Int
TYPE_TEXT_VARIATION_URI As Int
TYPE_TEXT_VARIATION_WEB_EDIT_TEXT As Int
Typeface (Medium As android.graphics.Typeface, Regular As android.graphics.Typeface) As MaterialDialogBuilder
WidgetColor (Color As Int) As MaterialDialogBuilder

MaterialDialogsManager

The MaterialDialogsManager raises the FileChooser, FolderChooser and ColorChooser events.
This is an 'Activity Object', it cannot be declared under Sub Process_Globals.

Events:

FolderSelected (Dialog As FolderChooserDialog, Path As String, Name As String)
FolderChooserDismissed (Dialog As FolderChooserDialog)
FileSelected (Dialog As FileChooserDialog, Path As String, Name As String)
FileChooserDismissed (Dialog As FileChooserDialog)
ColorSelected (Dialog As ColorChooserDialog, Color As Int)
ColorChooserDismissed (Dialog As ColorChooserDialog)

Members:


  Initialize (EventName As String)

  IsInitialized As Boolean

  SetDialogAccentColor (Color As Int)

Members description:

Initialize (EventName As String)
Initialize the MaterialDialogsManager object.

EventName: The name prefix for the events
IntervalMs: Timer interval in milliseconds. This will setup a timer which will call the Draw event so the WatchFace gets updated. This timer will fire only in interactive mode and when the WatchFace is visible.
IsInitialized As Boolean
Check if the manager is initialized
SetDialogAccentColor (Color As Int)

MaterialSimpleListItem

Created by stm on 27.02.2017.

Events:

None

Members:


  BackgroundColor As Int

  Content As String

  Icon As android.graphics.drawable.Drawable

  IconPadding As Int

  IconRes As String [write only]

  Id As Long

  Initialize (Icon As android.graphics.drawable.Drawable, Content As CharSequence)

  Initialize2 (IconRes As String, Content As CharSequence)

  Tag As Object

Members description:

BackgroundColor As Int
Content As String
Icon As android.graphics.drawable.Drawable
IconPadding As Int
IconRes As String [write only]
Id As Long
Initialize (Icon As android.graphics.drawable.Drawable, Content As CharSequence)
Initialize2 (IconRes As String, Content As CharSequence)
Tag As Object

Top