OsmAnd
|
Public Member Functions | |
ActionItem () | |
ActionItem (Drawable icon) | |
void | setTitle (String title) |
String | getTitle () |
void | setIcon (Drawable icon) |
Drawable | getIcon () |
void | setOnClickListener (OnClickListener listener) |
OnClickListener | getListener () |
void | setSelected (boolean selected) |
boolean | isSelected () |
void | setThumb (Bitmap thumb) |
Bitmap | getThumb () |
Action item, displayed as menu with icon and text.
Constructor
net.londatiga.android.ActionItem.ActionItem | ( | Drawable | icon | ) |
Constructor
icon | Drawable action icon |
Drawable net.londatiga.android.ActionItem.getIcon | ( | ) |
Get action icon
OnClickListener net.londatiga.android.ActionItem.getListener | ( | ) |
Get on click listener
Bitmap net.londatiga.android.ActionItem.getThumb | ( | ) |
Get thumb image
String net.londatiga.android.ActionItem.getTitle | ( | ) |
Get action title
boolean net.londatiga.android.ActionItem.isSelected | ( | ) |
Check if item is selected
void net.londatiga.android.ActionItem.setIcon | ( | Drawable | icon | ) |
Set action icon
icon | Drawable action icon |
void net.londatiga.android.ActionItem.setOnClickListener | ( | OnClickListener | listener | ) |
Set on click listener
listener | on click listener View.OnClickListener |
void net.londatiga.android.ActionItem.setSelected | ( | boolean | selected | ) |
Set selected flag;
selected | Flag to indicate the item is selected |
void net.londatiga.android.ActionItem.setThumb | ( | Bitmap | thumb | ) |
Set thumb
thumb | Thumb image |
void net.londatiga.android.ActionItem.setTitle | ( | String | title | ) |
Set action title
title | action title |