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'
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: