public class

ProgressItem

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

Class Overview

Progress indicator that displays a centered text with a circular and indeterminate ProgressBar when something is in progress.

Summary

Fields
public boolean isInProgress The state of this item.
[Expand]
Inherited Fields
From class greendroid.widget.item.TextItem
From class greendroid.widget.item.Item
Public Constructors
ProgressItem(String text)
Create a ProgressItem with the given text.
ProgressItem(String text, boolean isInProgress)
Create a ProgressItem with the given text and state.
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 boolean isInProgress

The state of this item. When set to true, a circular progress bar indicates something is going on/being computed.

Public Constructors

public ProgressItem (String text)

Create a ProgressItem with the given text. By default, the circular progress bar is not visible ... which indicates nothing is currently in progress.

Parameters
text The text for this item

public ProgressItem (String text, boolean isInProgress)

Create a ProgressItem with the given text and state.

Parameters
text The text for this item
isInProgress The state for 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