public class

LoaderActionBarItem

extends NormalActionBarItem
java.lang.Object
   ↳ greendroid.widget.ActionBarItem
     ↳ greendroid.widget.NormalActionBarItem
       ↳ greendroid.widget.LoaderActionBarItem

Class Overview

An extension of a NormalActionBarItem that supports a loading states. When in loading state, a LoaderActionBarItem display an indeterminate circular ProgressBar. This item is very handful with application fetching data from the network or performing long background tasks.

Summary

[Expand]
Inherited Fields
From class greendroid.widget.ActionBarItem
Public Constructors
LoaderActionBarItem()
Public Methods
void setLoading(boolean loading)
Sets the loading state of this LoaderActionBarItem.
Protected Methods
View createItemView()
void onItemClicked()
void prepareItemView()
[Expand]
Inherited Methods
From class greendroid.widget.NormalActionBarItem
From class greendroid.widget.ActionBarItem
From class java.lang.Object

Public Constructors

public LoaderActionBarItem ()

Public Methods

public void setLoading (boolean loading)

Sets the loading state of this LoaderActionBarItem.

Parameters
loading The new loading state. If true, an indeterminate ProgressBar is displayed. When false (default value) the ActionBarItem behaves exactly like a regular NormalActionBarItem.

Protected Methods

protected View createItemView ()

protected void onItemClicked ()

protected void prepareItemView ()