Wondercoll
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Public Member Functions | Protected Member Functions | List of all members
com.example.wondercoll.ExpandablePanel Class Reference
Inheritance diagram for com.example.wondercoll.ExpandablePanel:

Classes

interface  OnExpandListener
 

Public Member Functions

 ExpandablePanel (Context context)
 
 ExpandablePanel (Context context, AttributeSet attrs)
 
void setOnExpandListener (OnExpandListener listener)
 
void setCollapsedHeight (int collapsedHeight)
 
void setAnimationDuration (int animationDuration)
 

Protected Member Functions

void onFinishInflate ()
 
void onMeasure (int widthMeasureSpec, int heightMeasureSpec)
 

Constructor & Destructor Documentation

com.example.wondercoll.ExpandablePanel.ExpandablePanel ( Context  context)
com.example.wondercoll.ExpandablePanel.ExpandablePanel ( Context  context,
AttributeSet  attrs 
)

The constructor simply validates the arguments being passed in and sets the global variables accordingly. Required attributes are 'handle' and 'content'

Member Function Documentation

void com.example.wondercoll.ExpandablePanel.onFinishInflate ( )
protected

This method gets called when the View is physically visible to the user

void com.example.wondercoll.ExpandablePanel.onMeasure ( int  widthMeasureSpec,
int  heightMeasureSpec 
)
protected

This is where the magic happens for measuring the actual (un-expanded) height of the content. If the actual height is less than the collapsedHeight, the handle will be hidden.

void com.example.wondercoll.ExpandablePanel.setAnimationDuration ( int  animationDuration)
void com.example.wondercoll.ExpandablePanel.setCollapsedHeight ( int  collapsedHeight)
void com.example.wondercoll.ExpandablePanel.setOnExpandListener ( OnExpandListener  listener)

The documentation for this class was generated from the following file: