public class

SubtitleItem

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

Class Overview

An Item that contains two Strings : a text and a subtitle. The representation of this Item is a view containing two lines of text. If you want to be sure, the subtitle can occupy more than a single line, please use a SubtextItem

Summary

Fields
public String subtitle The subtitle of this item
[Expand]
Inherited Fields
From class greendroid.widget.item.TextItem
From class greendroid.widget.item.Item
Public Constructors
SubtitleItem(String text, String subtitle)
Construct a new SubtitleItem with the specified text and subtitle.
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.TextItem
From class greendroid.widget.item.Item
From class java.lang.Object

Fields

public String subtitle

The subtitle of this item

Public Constructors

public SubtitleItem (String text, String subtitle)

Construct a new SubtitleItem with the specified text and subtitle.

Parameters
text The text for this item
subtitle The item's subtitle

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