Class Overview
Simple dialog with custom look.
Summary
[Expand]
Inherited Methods |
From class
com.neomades.ui.dialog.Dialog
void
|
hide()
Hides this dialog (if shown).
|
boolean
|
isShown()
|
void
|
setCancellable(boolean cancellable)
Sets if the dialog is cancellable with the BACK button.
|
void
|
setContent(View content)
Set content of the dialog.
|
void
|
setTitle(String title)
Sets the title of this dialog
|
void
|
setTitle(int resId)
Sets the title of this dialog
|
void
|
show()
Shows this dialog in top of the current screen.
|
|
From class
java.lang.Object
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
final
Class<?>
|
getClass()
Returns the runtime class of an object.
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeout, int nanos)
Causes current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or some other
thread interrupts the current thread, or a certain amount of real time has
elapsed.
|
final
void
|
wait(long timeout)
Causes current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a specified
amount of time has elapsed.
|
final
void
|
wait()
Causes current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
|
Public Constructors
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.
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 |
public
void
setTitle
(String title)
Custom dialog does not show a title.
Use content view to insert a custom title.
public
void
setTitle
(int resId)
Custom dialog does not show a title.
Use content view to insert a custom title.