AI2 Component
(Version nb184)
|
Public Member Functions | |
void | requestActionBar () |
boolean | setActionBarVisible (boolean visible) |
boolean | hasActionBar () |
void | setTitle (String title) |
void | setActionBarAnimation (boolean enabled) |
void | setTitle (String title, boolean black) |
Definition at line 8 of file ThemeHelper.java.
boolean com.google.appinventor.components.runtime.util.theme.ThemeHelper.hasActionBar | ( | ) |
Tests whether the theme supports ActionBar.
Implemented in com.google.appinventor.components.runtime.util.theme.HoneycombThemeHelper, com.google.appinventor.components.runtime.util.theme.IceCreamSandwichThemeHelper, and com.google.appinventor.components.runtime.util.theme.ClassicThemeHelper.
void com.google.appinventor.components.runtime.util.theme.ThemeHelper.requestActionBar | ( | ) |
Request the ActionBar functionality fot the platform, if available.
Implemented in com.google.appinventor.components.runtime.util.theme.HoneycombThemeHelper, com.google.appinventor.components.runtime.util.theme.IceCreamSandwichThemeHelper, and com.google.appinventor.components.runtime.util.theme.ClassicThemeHelper.
void com.google.appinventor.components.runtime.util.theme.ThemeHelper.setActionBarAnimation | ( | boolean | enabled | ) |
Sets whether the ActionBar appear/disappear animation is shown (AppCompat mode only).
enabled | true if the animation should be used when visibility of the ActionBar is toggled, otherwise false. |
Implemented in com.google.appinventor.components.runtime.util.theme.HoneycombThemeHelper, com.google.appinventor.components.runtime.util.theme.IceCreamSandwichThemeHelper, and com.google.appinventor.components.runtime.util.theme.ClassicThemeHelper.
boolean com.google.appinventor.components.runtime.util.theme.ThemeHelper.setActionBarVisible | ( | boolean | visible | ) |
Change the ActionBar visibility
visible | true if the ActionBar should be made visible, otherwise false. |
Implemented in com.google.appinventor.components.runtime.util.theme.HoneycombThemeHelper, com.google.appinventor.components.runtime.util.theme.IceCreamSandwichThemeHelper, and com.google.appinventor.components.runtime.util.theme.ClassicThemeHelper.
void com.google.appinventor.components.runtime.util.theme.ThemeHelper.setTitle | ( | String | title | ) |
Sets the title of the activity in the ActionBar.
title | New title text for the ActionBar |
Implemented in com.google.appinventor.components.runtime.util.theme.HoneycombThemeHelper, com.google.appinventor.components.runtime.util.theme.IceCreamSandwichThemeHelper, and com.google.appinventor.components.runtime.util.theme.ClassicThemeHelper.
void com.google.appinventor.components.runtime.util.theme.ThemeHelper.setTitle | ( | String | title, |
boolean | black | ||
) |
Sets the title of the ActionBar and its color. If
is true, the helper should attempt to make the text black. Otherwise, the text will be white.
title | the new title for the ActionBar |
black | true if black text is desired, false if white text is desired |
Implemented in com.google.appinventor.components.runtime.util.theme.IceCreamSandwichThemeHelper, com.google.appinventor.components.runtime.util.theme.HoneycombThemeHelper, and com.google.appinventor.components.runtime.util.theme.ClassicThemeHelper.