public class

CustomDialog

extends Dialog
java.lang.Object
   ↳ com.neomades.ui.dialog.Dialog
     ↳ com.neomades.ui.dialog.CustomDialog

Class Overview

Simple dialog with custom look.

Summary

Public Constructors
CustomDialog()
Public Methods
void setBackgroundColor(Color color)
Sets background mask color behind the custom dialog.
void setContent(View content)
Sets the content of the dialog.
void setContentAlignment(int alignment)
Sets the content view alignment into the screen.
void setTitle(String title)
Custom dialog does not show a title.
void setTitle(int resId)
Custom dialog does not show a title.
[Expand]
Inherited Methods
From class com.neomades.ui.dialog.Dialog
From class java.lang.Object

Public Constructors

public CustomDialog ()

Public Methods

public void setBackgroundColor (Color color)

Sets background mask color behind the custom dialog.

By default there is the native background mask.

Parameters
color a translucent ARGB color (with or without an alpha channel)

public void setContent (View content)

Sets the content of the dialog.

Parameters
content any type of View

public void setContentAlignment (int alignment)

Sets the content view alignment into the screen.

By default, all the platforms set the content alignment to HCENTER|VCENTER

Parameters
alignment the content view alignment
See Also

public void setTitle (String title)

Custom dialog does not show a title.

Use content view to insert a custom title.

Parameters
title not used

public void setTitle (int resId)

Custom dialog does not show a title.

Use content view to insert a custom title.

Parameters
resId not used