public interface ExpandableLayout
| 修飾子とタイプ | インタフェースと説明 |
|---|---|
static interface |
ExpandableLayout.Orientation
Orientation of layout
|
| 修飾子とタイプ | フィールドと説明 |
|---|---|
static int |
DEFAULT_DURATION
Duration of expand animation
|
static boolean |
DEFAULT_EXPANDED
Visibility of the layout when the layout attaches
|
static int |
HORIZONTAL
Orientation of child views
|
static int |
VERTICAL
Orientation of child views
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
collapse()
Starts collapse animation.
|
void |
collapse(long duration,
android.animation.TimeInterpolator interpolator)
Starts collapse animation.
|
void |
expand()
Starts expand animation.
|
void |
expand(long duration,
android.animation.TimeInterpolator interpolator)
Starts expand animation.
|
boolean |
isExpanded()
Gets state of expanse.
|
void |
setDuration(int duration)
Sets the length of the animation.
|
void |
setExpanded(boolean expanded)
Sets state of expanse.
|
void |
setInterpolator(android.animation.TimeInterpolator interpolator)
The time interpolator used in calculating the elapsed fraction of this animation.
|
void |
setListener(ExpandableLayoutListener listener)
Sets the expandable layout listener.
|
void |
toggle()
Starts animation the state of the view to the inverse of its current state.
|
void |
toggle(long duration,
android.animation.TimeInterpolator interpolator)
Starts animation the state of the view to the inverse of its current state.
|
static final int DEFAULT_DURATION
static final boolean DEFAULT_EXPANDED
static final int HORIZONTAL
static final int VERTICAL
void toggle()
void toggle(long duration,
@Nullable
android.animation.TimeInterpolator interpolator)
duration - interpolator - use the default interpolator if the argument is null.void expand()
void expand(long duration,
@Nullable
android.animation.TimeInterpolator interpolator)
duration - interpolator - use the default interpolator if the argument is null.void collapse()
void collapse(long duration,
@Nullable
android.animation.TimeInterpolator interpolator)
duration - interpolator - use the default interpolator if the argument is null.void setListener(@NonNull
ExpandableLayoutListener listener)
listener - ExpandableLayoutListenervoid setDuration(int duration)
duration - void setExpanded(boolean expanded)
expanded - The layout is visible if expanded is trueboolean isExpanded()
void setInterpolator(@NonNull
android.animation.TimeInterpolator interpolator)
AccelerateDecelerateInterpolatorinterpolator -