Classes | |
interface | IResetParentLayoutListener |
enum | ItemType |
enum | SortType |
Public Member Functions | |
View | getContentView () |
int | getId () |
int | getTag () |
String | getText () |
void | onItemLayout (int left, int top, int right, int bottom) |
void | setBackgroundResource (int res) |
void | setContentView (View view) |
void | setDisplayStyle (ItemType type) |
void | setEllipsize (TextUtils.TruncateAt where) |
void | setEnable (boolean enable) |
void | setFilters (InputFilter[] filters) |
void | setId (int id) |
boolean | setImageDrawable (@Nullable Drawable drawable) |
boolean | setImageResource (int res) |
void | setInterval (int interval) |
void | setOnClickListener (View.OnClickListener l) |
void | setOnLongClickListener (View.OnLongClickListener l) |
void | setRelation (int relation) |
void | setResetLayoutListener (IResetParentLayoutListener listener) |
void | setSelected (boolean selected) |
void | setTag (int tag) |
void | setText (CharSequence text) |
void | setText (int res) |
void | setTextColor (int selectedTextColor, int disSelectedTextColor) |
void | setTextColor (int color) |
void | setTextColorResource (int res) |
void | setTextSize (float size) |
void | setTypeface (Typeface typeface) |
Static Public Attributes | |
static final int | RELATION_BELOW = 13 |
static final int | RELATION_LEFT = 10 |
static final int | RELATION_RIGNT = 12 |
static final int | RELATION_TOP = 11 |
Set the properties of item in the toolbar
View com.foxit.uiextensions.controls.toolbar.IBaseItem.getContentView | ( | ) |
Retrieve the View attached to this item, if present.
int com.foxit.uiextensions.controls.toolbar.IBaseItem.getId | ( | ) |
Return the identifier of the item view
int com.foxit.uiextensions.controls.toolbar.IBaseItem.getTag | ( | ) |
Return the tag of the item.
String com.foxit.uiextensions.controls.toolbar.IBaseItem.getText | ( | ) |
Return the text that TextView is displaying.
void com.foxit.uiextensions.controls.toolbar.IBaseItem.onItemLayout | ( | int | left, |
int | top, | ||
int | right, | ||
int | bottom | ||
) |
Called from layout when this item should assign a size and position to each of its children.
left | Left position, relative to parent |
top | Top position, relative to parent |
right | Right position, relative to parent |
bottom | Bottom position, relative to parent |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setBackgroundResource | ( | int | res | ) |
Set the background to a given resource.
res | The identifier of the resource. |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setContentView | ( | View | view | ) |
Set the content view attached to this item
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setDisplayStyle | ( | ItemType | type | ) |
Set the display style of this item view
type | the specified ItemType to use. |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setEllipsize | ( | TextUtils.TruncateAt | where | ) |
Causes words in the text that are longer than the view's width to be ellipsized instead of broken in the middle.
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setEnable | ( | boolean | enable | ) |
Set the enabled state of this item.
enable | True if this item is enabled, false otherwise. |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setFilters | ( | InputFilter [] | filters | ) |
Sets the list of input filters that will be used if the buffer is Editable. Has no effect otherwise.
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setId | ( | int | id | ) |
Set the identifier for this item view
id | a number used to identify the item view |
boolean com.foxit.uiextensions.controls.toolbar.IBaseItem.setImageDrawable | ( | @Nullable Drawable | drawable | ) |
Sets a drawable as the content of this item.
drawable | the Drawable to set |
boolean com.foxit.uiextensions.controls.toolbar.IBaseItem.setImageResource | ( | int | res | ) |
Sets a drawable as the content of this item.
res | the resource identifier of the drawable |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setInterval | ( | int | interval | ) |
The interval in pixels of the item.
interval | the interval size. |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setOnClickListener | ( | View.OnClickListener | l | ) |
Register a callback to be invoked when this item is clicked.
l | The callback that will run |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setOnLongClickListener | ( | View.OnLongClickListener | l | ) |
Register a callback to be invoked when this view is clicked and held.
l | The callback that will run |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setRelation | ( | int | relation | ) |
Sets the relation between text view and image view for this item. NOTE: Only used for ItemType#Item_Text_Image.
relation | the relation between text view and image view. Should be one of RELATION_LEFT, RELATION_TOP, RELATION_RIGNT or RELATION_BELOW |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setResetLayoutListener | ( | IResetParentLayoutListener | listener | ) |
Set a IResetParentLayoutListener to be invoke when the layout has reset.
listener | the callback that will run. |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setSelected | ( | boolean | selected | ) |
Changes the selection state of this item.
selected | true if the item must be selected, false otherwise |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setTag | ( | int | tag | ) |
Set the tag for this item.
tag | a number used to identify the item |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setText | ( | CharSequence | text | ) |
Sets the text to be displayed.
text | text to be displayed |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setText | ( | int | res | ) |
Sets the text to be displayed using a string resource identifier.
res | the resource identifier of the string resource to be displayed |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setTextColor | ( | int | selectedTextColor, |
int | disSelectedTextColor | ||
) |
Sets the text color for all the states (normal, selected, focused) to be this color.
selectedTextColor | A color value in the form 0xAARRGGBB. used when text is selected |
disSelectedTextColor | A color value in the form 0xAARRGGBB. used when text is normal state. |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setTextColor | ( | int | color | ) |
Sets the text color for all the states (normal, selected, focused) to be this color.
color | A color value in the form 0xAARRGGBB. |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setTextColorResource | ( | int | res | ) |
Sets the text color from a color state list associated with a particular resource ID.
res | a color state list associated with a particular resource ID |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setTextSize | ( | float | size | ) |
Set the text size
size | The desired size |
void com.foxit.uiextensions.controls.toolbar.IBaseItem.setTypeface | ( | Typeface | typeface | ) |
Sets the typeface and style in which the text should be displayed.
typeface | the Typeface to use. |
|
static |
Used for ItemType#Item_Text_Image: the text view is blow of the image. Note: This method is only used within RDK
|
static |
Used for ItemType#Item_Text_Image: the text view is on the left of the image. Note: This method is only used within RDK
|
static |
Used for ItemType#Item_Text_Image: the text view is on the right of the image. Note: This method is only used within RDK
|
static |
Used for ItemType#Item_Text_Image: the text view is on the top of the image. Note: This method is only used within RDK