com.devoteam.quickaction
Class QuickActionItem

java.lang.Object
  extended by LinearLayout
      extended by com.devoteam.quickaction.QuickActionItem

public class QuickActionItem
extends LinearLayout

A class that creates a layout arranged to fit in a QuickActionMenu Based on the great work done by Mohd Faruq


Constructor Summary
QuickActionItem(Context context, AttributeSet attrs)
          Creates a new Instance of a QuickActionItem
 
Method Summary
 boolean isChecked()
           
 int[] onCreateDrawableState(int extraSpace)
           
 void setChecked(boolean checked)
           
 void setImageDrawable(Drawable drawable)
          Sets the icon for the view
 void setText(java.lang.String text)
          Sets a label for the view
 void toggle()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickActionItem

public QuickActionItem(Context context,
                       AttributeSet attrs)
Creates a new Instance of a QuickActionItem

Parameters:
context - Context to use, usually your Appication or your Activity
attrs - A collection of attributes, as found associated with a tag in an XML document
Method Detail

onCreateDrawableState

public int[] onCreateDrawableState(int extraSpace)

toggle

public void toggle()

isChecked

public boolean isChecked()

setChecked

public void setChecked(boolean checked)

setImageDrawable

public void setImageDrawable(Drawable drawable)
Sets the icon for the view

Parameters:
drawable - The icon for this item

setText

public void setText(java.lang.String text)
Sets a label for the view