| java.lang.Object | |
| ↳ | greendroid.widget.item.Item |
Known Direct Subclasses
|
Known Indirect Subclasses
|
Base class for all items used in GreenDroid. An item represents a wrapper of data. Each item contains at least all the information needed to display a single row in a ListView.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| enabled | Set to true when this item is enabled | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new item.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Return the tag associated to that item.
| |||||||||||
Return the tag associated with this item and the specified key.
| |||||||||||
Inflate this Item from an XML resource.
| |||||||||||
Return a view that is associated to the current item.
| |||||||||||
Set a tag associated with this item and a key.
| |||||||||||
Set the tag associated with this item.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Helper method to inflate a layout using a given Context and a layoutID.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Set to true when this item is enabled
Create a new item.
Return the tag associated to that item.
Return the tag associated with this item and the specified key.
| key | The key of the tag to retrieve |
|---|
Inflate this Item from an XML resource.
| XmlPullParserException | |
| IOException | |
| XmlPullParserException |
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.
| 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. |
Set a tag associated with this item and a key. A tag is often used to store extra information.
| key | The key for the specified tag |
|---|---|
| tag | A tag that will be associated to that item |
Set the tag associated with this item. A tag is often used to store extra information.
| tag | The tag associated to this item |
|---|
Helper method to inflate a layout using a given Context and a layoutID.
| context | The current context |
|---|---|
| layoutID | The identifier of the layout to inflate |