public class

LongTextItem

extends TextItem
java.lang.Object
   ↳ greendroid.widget.item.Item
     ↳ greendroid.widget.item.TextItem
       ↳ greendroid.widget.item.LongTextItem

Class Overview

A LongTextItem is very similar to a regular TextItem. The only difference is it may display the text on several lines.

Summary

[Expand]
Inherited Fields
From class greendroid.widget.item.TextItem
From class greendroid.widget.item.Item
Public Constructors
LongTextItem(String text)
Create a new LongTextItem
Public Methods
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

Public Constructors

public LongTextItem (String text)

Create a new LongTextItem

Parameters
text The text being used in this LongTextItem

Public Methods

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