The MAFDialog control extends the capabilities of the android.app.Dialog native control. MAF adds styling capabilities to the Dialog UI component.
OnClickListener listener = new OnClickListener() {
                        @Override
                        public void onClick(View v) {                             
                              …
                        }
           };   
MAFDialog d = new MAFDialog(this);
           d.setPositiveButton("Yes", listener);
           d.setTitle("A very long dialog");
           d.show(); 
The MAF skinning engine customizes the dialog.
Style TargetType="Dialog" Key="DefDialog" platform="android"> <Setter Property="Background" Value="#ffffffff" /> <!-- dialog background color --> <Setter Property="Foreground" Value="#ff000000" /> <!-- dialog text color --> <Setter Property="Separator" Value="#ff00a3d7" /> <!-- dialog separator line color --> </ Style >
d.setPositiveButton("Yes", positiveListener);   
d.setNegativeButton("No", negativeListener);   
d.setNeutralButton("Cancel", neutralListener); 
            MAFDialogWithProgressBar dialog = new MAFDialogWithProgressBar(ColorApp.this);                             
        dialog.setMessage("Dialog Text");                             
        dialog.show(); 
            <Style TargetType="Dialog" Key="FilterDialog" BasedOn="DefDialog" platform="android"> <Setter Property="Separator" Value="0" /> <!-- dialog separator line color --> </Style>
MAFDialog d = new MAFDialog(this, ”flavorName”); MAFDialogWithProgressBar dialog = new MAFDialogWithProgressBar(ColorApp. this,”flavorName” );
| Background | Dialog background color. Colors are defined as RGBA (red, green, blue, alpha). | 
| Foreground | Dialog text color. | 
| Separator | Dialog separator line color. |