public class AlertDialogHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
STANDARD_MAXIMUM_WIDTH |
static java.lang.String |
TAG |
Constructor and Description |
---|
AlertDialogHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
adjustWidth(android.app.AlertDialog alertDialog,
double percentageWidth)
Helper method for setting the width of an AlertDialog to either be a percentage width of the
window size capped by a maximum width.
|
static void |
adjustWidth(android.app.AlertDialog alertDialog,
double percentageWidth,
int maximumWidth)
Helper method for setting the width of an AlertDialog to either be a percentage width of the
window size capped by a maximum width.
|
public static final java.lang.String TAG
public static final int STANDARD_MAXIMUM_WIDTH
public static void adjustWidth(android.app.AlertDialog alertDialog, double percentageWidth)
alertDialog
- the alert dialogpercentageWidth
- the percentage of the screen to use as expressed by a number between 0 and 1public static void adjustWidth(android.app.AlertDialog alertDialog, double percentageWidth, int maximumWidth)
alertDialog
- the alert dialogpercentageWidth
- the percentage of the screen to use as expressed by a number between 0 and 1maximumWidth
- the maximum width that the alert dialog should be no matter what the screen size.