Methods Summary |
---|
public static android.graphics.drawable.Drawable | getThemeUpIndicator(android.app.Activity activity)
final ActionBar actionBar = activity.getActionBar();
final Context context;
if (actionBar != null) {
context = actionBar.getThemedContext();
} else {
context = activity;
}
final TypedArray a = context.obtainStyledAttributes(null, THEME_ATTRS,
R.attr.actionBarStyle, 0);
final Drawable result = a.getDrawable(0);
a.recycle();
return result;
|
public static java.lang.Object | setActionBarDescription(java.lang.Object info, android.app.Activity activity, int contentDescRes)
final ActionBar actionBar = activity.getActionBar();
if (actionBar != null) {
actionBar.setHomeActionContentDescription(contentDescRes);
}
return info;
|
public static java.lang.Object | setActionBarUpIndicator(java.lang.Object info, android.app.Activity activity, android.graphics.drawable.Drawable drawable, int contentDescRes)
final ActionBar actionBar = activity.getActionBar();
if (actionBar != null) {
actionBar.setHomeAsUpIndicator(drawable);
actionBar.setHomeActionContentDescription(contentDescRes);
}
return info;
|