Title bar object including the a title and a UgiStatusImageView.
Public Member Functions | |
UgiTitleView (Context context, AttributeSet attrs) | |
Constructor. More... | |
void | setBackButtonCompletion (Runnable completion) |
Set the code to run when the back button is touched. More... | |
void | setRightButton (int resourceId, int color, int highlightedResourceId, int highlightedColor, Runnable handler) |
Set the right button image (via resource id) and handler. More... | |
void | setRightButton (Drawable drawable, int color, Drawable highlightedDrawable, int highlightedColor, Runnable handler) |
Set the right button image (via drawable) and handler. More... | |
int | getThemeColorOverride () |
Get the color to use for the title view (to override the Activity's default) More... | |
void | setThemeColorOverride (int themeColorOverride) |
Set the color to use for the title view. More... | |
int | getTextColorOnThemeColorOverride () |
Get the color to use when on top of the theme color. More... | |
void | setTextColorOnThemeColorOverride (final int textColorOnThemeColorOverride) |
Set the theme color. More... | |
boolean | getUseBackgroundBasedOnThemeColor () |
Get whether the view have a gradient background using the theme color. More... | |
void | setUseBackgroundBasedOnThemeColor (boolean b) |
Set whether the view have a gradient background using the theme color. More... | |
boolean | getDisplayWaveAnimationWhileScanning () |
Get whether a moving wave animation should be displayed while scanning. More... | |
void | setDisplayWaveAnimationWhileScanning (boolean b) |
Set whether a moving wave animation should be displayed while scanning. More... | |
boolean | getHideBatteryStatusIndicator () |
Get whether to display the battery status indicator. More... | |
void | setHideBatteryStatusIndicator (boolean b) |
Set whether to display the battery status indicator. More... | |
boolean | getBatteryStatusIndicatorDisplayVersionInfoOnTouch () |
Get whether to show version information alert when battery status indicator is touched. More... | |
void | setBatteryStatusIndicatorDisplayVersionInfoOnTouch (boolean b) |
Set whether to show version information alert when battery status indicator is touched. More... | |
boolean | isUseAppNameAsTitle () |
See whether the app name should be used as the title if no title text is given. More... | |
void | setUseAppNameAsTitle (boolean useAppNameAsTitle) |
Set whether the app name should be used as the title if no title text is given. More... | |
String | getTheTitle () |
Get the title. More... | |
void | setTheTitle (String title) |
Set the title. More... | |
boolean | doesTitleImageExist () |
See if a title image exists. More... | |
void | setTitleImage (Drawable drawable) |
Set the title image via a Drawable. More... | |
void | setTitleImage (int resourceId) |
Set the title image via a resource id. More... | |
void com.ugrokit.api.UgiTitleView.setBackButtonCompletion | ( | Runnable | completion | ) |
Set the code to run when the back button is touched.
completion | code to run |
void com.ugrokit.api.UgiTitleView.setRightButton | ( | int | resourceId, |
int | color, | ||
int | highlightedResourceId, | ||
int | highlightedColor, | ||
Runnable | handler | ||
) |
Set the right button image (via resource id) and handler.
resourceId | Button image |
color | Color for the image, or null to not change the image color |
highlightedResourceId | Button image when highlighted |
highlightedColor | Highlighted color for the image, or null to not change the image color |
handler | Click handler |
void com.ugrokit.api.UgiTitleView.setRightButton | ( | Drawable | drawable, |
int | color, | ||
Drawable | highlightedDrawable, | ||
int | highlightedColor, | ||
Runnable | handler | ||
) |
Set the right button image (via drawable) and handler.
drawable | Button image |
color | Color for the image, or null to not change the image color |
highlightedDrawable | Button image when highlighted |
highlightedColor | Color for the image when highlighted, or null to not change the image color |
handler | Click handler |
int com.ugrokit.api.UgiTitleView.getThemeColorOverride | ( | ) |
Get the color to use for the title view (to override the Activity's default)
void com.ugrokit.api.UgiTitleView.setThemeColorOverride | ( | int | themeColorOverride | ) |
Set the color to use for the title view.
themeColorOverride | The color |
int com.ugrokit.api.UgiTitleView.getTextColorOnThemeColorOverride | ( | ) |
Get the color to use when on top of the theme color.
void com.ugrokit.api.UgiTitleView.setTextColorOnThemeColorOverride | ( | final int | textColorOnThemeColorOverride | ) |
Set the theme color.
textColorOnThemeColorOverride | Theme color |
boolean com.ugrokit.api.UgiTitleView.getUseBackgroundBasedOnThemeColor | ( | ) |
Get whether the view have a gradient background using the theme color.
void com.ugrokit.api.UgiTitleView.setUseBackgroundBasedOnThemeColor | ( | boolean | b | ) |
Set whether the view have a gradient background using the theme color.
b | true to have a gradient background |
boolean com.ugrokit.api.UgiTitleView.getDisplayWaveAnimationWhileScanning | ( | ) |
Get whether a moving wave animation should be displayed while scanning.
void com.ugrokit.api.UgiTitleView.setDisplayWaveAnimationWhileScanning | ( | boolean | b | ) |
Set whether a moving wave animation should be displayed while scanning.
b | true to display a moving wave animation while scanning |
boolean com.ugrokit.api.UgiTitleView.getHideBatteryStatusIndicator | ( | ) |
Get whether to display the battery status indicator.
void com.ugrokit.api.UgiTitleView.setHideBatteryStatusIndicator | ( | boolean | b | ) |
Set whether to display the battery status indicator.
b | true to display the battery status indicator |
boolean com.ugrokit.api.UgiTitleView.getBatteryStatusIndicatorDisplayVersionInfoOnTouch | ( | ) |
Get whether to show version information alert when battery status indicator is touched.
void com.ugrokit.api.UgiTitleView.setBatteryStatusIndicatorDisplayVersionInfoOnTouch | ( | boolean | b | ) |
Set whether to show version information alert when battery status indicator is touched.
b | true to show alert |
boolean com.ugrokit.api.UgiTitleView.isUseAppNameAsTitle | ( | ) |
See whether the app name should be used as the title if no title text is given.
void com.ugrokit.api.UgiTitleView.setUseAppNameAsTitle | ( | boolean | useAppNameAsTitle | ) |
Set whether the app name should be used as the title if no title text is given.
useAppNameAsTitle | true to use app name as title |
String com.ugrokit.api.UgiTitleView.getTheTitle | ( | ) |
Get the title.
void com.ugrokit.api.UgiTitleView.setTheTitle | ( | String | title | ) |
Set the title.
title | The title to set |
boolean com.ugrokit.api.UgiTitleView.doesTitleImageExist | ( | ) |
See if a title image exists.
void com.ugrokit.api.UgiTitleView.setTitleImage | ( | Drawable | drawable | ) |
Set the title image via a Drawable.
drawable | The title image to set |
void com.ugrokit.api.UgiTitleView.setTitleImage | ( | int | resourceId | ) |
Set the title image via a resource id.
resourceId | The title image to set |
com.ugrokit.api.UgiTitleView.UgiTitleView | ( | Context | context, |
AttributeSet | attrs | ||
) |
Constructor.
context | Context |
attrs | Attributes |