|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.todoroo.andlib.utility.DialogUtilities
public class DialogUtilities
Constructor Summary | |
---|---|
DialogUtilities()
|
Method Summary | |
---|---|
static void |
dismissDialog(android.app.Activity activity,
android.app.Dialog dialog)
Dismiss a dialog off the UI thread |
static void |
htmlDialog(android.content.Context context,
java.lang.String html,
int title)
Display an OK dialog with HTML content |
static void |
okCancelCustomDialog(android.app.Activity activity,
java.lang.String title,
java.lang.String text,
int okTitleId,
int cancelTitleId,
int icon,
android.content.DialogInterface.OnClickListener okListener,
android.content.DialogInterface.OnClickListener cancelListener)
Displays a dialog box with custom titled OK and cancel button titles |
static void |
okCancelDialog(android.app.Activity activity,
java.lang.String text,
android.content.DialogInterface.OnClickListener okListener,
android.content.DialogInterface.OnClickListener cancelListener)
Displays a dialog box with OK and Cancel buttons |
static void |
okCancelDialog(android.app.Activity activity,
java.lang.String title,
java.lang.String text,
android.content.DialogInterface.OnClickListener okListener,
android.content.DialogInterface.OnClickListener cancelListener)
Displays a dialog box with OK and Cancel buttons and custom title |
static void |
okDialog(android.app.Activity activity,
java.lang.String text,
android.content.DialogInterface.OnClickListener okListener)
Displays a dialog box with an OK button |
static void |
okDialog(android.app.Activity activity,
java.lang.String title,
int icon,
java.lang.CharSequence text,
android.content.DialogInterface.OnClickListener okListener)
Displays a dialog box with an OK button |
static android.app.ProgressDialog |
progressDialog(android.content.Context context,
java.lang.String text)
Displays a progress dialog. |
static void |
viewDialog(android.app.Activity activity,
java.lang.String text,
android.view.View view,
android.content.DialogInterface.OnClickListener okListener,
android.content.DialogInterface.OnClickListener cancelListener)
Displays a dialog box with a EditText and an ok / cancel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DialogUtilities()
Method Detail |
---|
public static void viewDialog(android.app.Activity activity, java.lang.String text, android.view.View view, android.content.DialogInterface.OnClickListener okListener, android.content.DialogInterface.OnClickListener cancelListener)
activity
- text
- okListener
- public static void htmlDialog(android.content.Context context, java.lang.String html, int title)
context
- html
- title
- public static void okDialog(android.app.Activity activity, java.lang.String text, android.content.DialogInterface.OnClickListener okListener)
activity
- text
- okListener
- public static void okDialog(android.app.Activity activity, java.lang.String title, int icon, java.lang.CharSequence text, android.content.DialogInterface.OnClickListener okListener)
activity
- text
- okListener
- public static void okCancelDialog(android.app.Activity activity, java.lang.String title, java.lang.String text, android.content.DialogInterface.OnClickListener okListener, android.content.DialogInterface.OnClickListener cancelListener)
activity
- title
- text
- okListener
- cancelListener
- public static void okCancelDialog(android.app.Activity activity, java.lang.String text, android.content.DialogInterface.OnClickListener okListener, android.content.DialogInterface.OnClickListener cancelListener)
activity
- text
- okListener
- cancelListener
- public static void okCancelCustomDialog(android.app.Activity activity, java.lang.String title, java.lang.String text, int okTitleId, int cancelTitleId, int icon, android.content.DialogInterface.OnClickListener okListener, android.content.DialogInterface.OnClickListener cancelListener)
public static android.app.ProgressDialog progressDialog(android.content.Context context, java.lang.String text)
context
- text
-
public static void dismissDialog(android.app.Activity activity, android.app.Dialog dialog)
activity
- dialog
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |