Known Direct Subclasses
| DescriptionItem |
A description item displays a text on several lines. |
| DrawableItem |
A DrawableItem displays a single Drawable on the left of the itemview and a
description text on the right. |
| LongTextItem |
A LongTextItem is very similar to a regular TextItem. |
| ProgressItem |
Progress indicator that displays a centered text with a circular and
indeterminate ProgressBar when something is in progress. |
| SeparatorItem |
Act as a separator between important ListView sections. |
| SubtextItem |
A SubtextItem is really similar to a SubtitleItem as it displays two
pieces of text. |
| SubtitleItem |
An Item that contains two Strings : a text and a subtitle. |
|
Known Indirect Subclasses
| ThumbnailItem |
A ThumbnailItem item is a complex item that wraps a Drawable and two Strings:
a title and a subtitle. |
|
Class Overview
A TextItem is a very basic item that only contains a single text. The text
will be displayed on a single line on screen.
Summary
| Public Constructors |
|
|
TextItem(String text)
Create a new TextItem with the specified text.
|
Fields
Public Constructors
public
TextItem
(String text)
Create a new TextItem with the specified text.
Parameters
| text
| The text used to create this item.
|
Public Methods
Inflate this Item from an XML resource.
Return a view that is associated to the current item. The returned view
is normally capable of being a good recipient for all item's information.
Parameters
| context
| The Context in which the ItemView will be used |
| parent
| The parent View of that new View. The parent is usually the
parent ListView and may be used to retrieve the correct
LayoutParams type. |
Returns
- A new allocated view for the current Item