public class

SeparatorItem

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

Class Overview

Act as a separator between important ListView sections. A separator display text on a single line.

Summary

[Expand]
Inherited Fields
From class greendroid.widget.item.TextItem
From class greendroid.widget.item.Item
Public Constructors
SeparatorItem(String text)
Construct a SeparatorItem made of the given text
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 SeparatorItem (String text)

Construct a SeparatorItem made of the given text

Parameters
text The text for this SeparatorItem

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