public class ActivityHelper
extends java.lang.Object
Constructor and Description |
---|
ActivityHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addActionBarIfSupported(android.app.Activity activity)
Request the ActionBar window feature if we are on a supported Android
version.
|
static boolean |
holoSupported() |
static void |
setActivityTheme(android.app.Activity activity,
boolean useApplicationTheme)
Overrides whatever theme the activity currently has with either
Theme_Holo_Light or Theme_Light, depending on OS support.
|
static void |
setFlagSecure(android.app.Activity activity) |
static void |
setupActionBarIfSupported(android.app.Activity activity,
android.widget.TextView titleTextView,
java.lang.String title,
java.lang.String titleTextViewPrefix,
android.graphics.drawable.Drawable icon)
Sets up the title, appearance, and behavior of the ActionBar if it is
supported.
|
public static void addActionBarIfSupported(android.app.Activity activity)
activity
- public static void setupActionBarIfSupported(android.app.Activity activity, android.widget.TextView titleTextView, java.lang.String title, java.lang.String titleTextViewPrefix, android.graphics.drawable.Drawable icon)
addActionBarIfSupported(Activity)
.activity
- titleTextView
- title
- titleTextViewPrefix
- icon
- public static boolean holoSupported()
public static void setActivityTheme(android.app.Activity activity, boolean useApplicationTheme)
activity
- useApplicationTheme
- public static void setFlagSecure(android.app.Activity activity)
Copyright © 2012 PayPal, Inc. All Rights Reserved.