public class

TextItem

extends Item
java.lang.Object
   ↳ greendroid.widget.item.Item
     ↳ greendroid.widget.item.TextItem
Known Direct Subclasses
Known Indirect Subclasses

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

Fields
public String text The item's text.
[Expand]
Inherited Fields
From class greendroid.widget.item.Item
Public Constructors
TextItem(String text)
Create a new TextItem with the specified text.
Public Methods
void inflate(Resources r, XmlPullParser parser, AttributeSet attrs)
Inflate this Item from an XML resource.
ItemView newView(Context context, ViewGroup parent)
Return a view that is associated to the current item.
[Expand]
Inherited Methods
From class greendroid.widget.item.Item
From class java.lang.Object

Fields

public String text

The item's text.

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

public void inflate (Resources r, XmlPullParser parser, AttributeSet attrs)

Inflate this Item from an XML resource.

public ItemView newView (Context context, ViewGroup parent)

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