public final class ViewHelper
extends java.lang.Object
| Constructor and Description |
|---|
ViewHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
showDialog(android.app.Activity activity,
java.lang.String title,
java.lang.String body)
Displays a modal dialog with an OK button.
|
static void |
showDialog(android.app.Activity activity,
java.lang.String title,
java.lang.String body,
java.lang.String positiveButton,
android.content.DialogInterface.OnClickListener positiveButtonListener,
java.lang.String negativeButton,
android.content.DialogInterface.OnClickListener negativeButtonListener)
Displays a modal dialog.
|
public static void showDialog(android.app.Activity activity,
java.lang.String title,
java.lang.String body)
activity - invoking activitytitle - title to display for the dialogbody - content of the dialogpublic static void showDialog(android.app.Activity activity,
java.lang.String title,
java.lang.String body,
java.lang.String positiveButton,
android.content.DialogInterface.OnClickListener positiveButtonListener,
java.lang.String negativeButton,
android.content.DialogInterface.OnClickListener negativeButtonListener)
activity - invoking activitytitle - title to display for the dialogbody - content of the dialogpositiveButton - String for positive buttonnegativeButton - String for negative buttonnegativeButtonListener - the listener which should be invoked when a negative button is pressedpositiveButtonListener - the listener which should be invoked when a positive button is pressed