public interface RollingLayoutAction
RollingLayout that can be
used by another class.
Created by yangjing on 17-7-21.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
RollingLayoutAction.OnRollingChangedListener
listener for listen RollingLayout changed action.
|
static interface |
RollingLayoutAction.OnRollingItemClickListener
listener for listen RollingLayout item view is clicked.
|
static interface |
RollingLayoutAction.Orientation |
| Modifier and Type | Field and Description |
|---|---|
static int |
DOWN_UP
the rolling orientation of
RollingLayout child views from bottom to top. |
static int |
LEFT_RIGHT
the rolling orientation of
RollingLayout child views from left to right. |
static int |
RIGHT_LEFT
the rolling orientation of
RollingLayout child views from right to left. |
static int |
UP_DOWN
the rolling orientation of
RollingLayout child views from top to bottom. |
| Modifier and Type | Method and Description |
|---|---|
void |
addOnRollingChangedListener(RollingLayoutAction.OnRollingChangedListener onRollingChangedListener)
add a listener to listen RollingLayout rolling changed action.
|
void |
setAdapter(android.widget.BaseAdapter adapter)
Sets the data behind this RollingLayout.
|
void |
setOnRollingItemClickListener(RollingLayoutAction.OnRollingItemClickListener onRollingItemClickListener)
set a listener to listen RolligLayout rolling item click action.
|
void |
setRollingEachTime(int time)
set the spend time of each rolling.
|
void |
setRollingOrientation(int orientation)
set the rolling orientation.
|
void |
setRollingPauseTime(int time)
set the pause time when the child view is rolling complected.
|
void |
startRolling()
make the RollingLayout's child view rolling.
|
void |
stopRolling()
stop the RollingLayout rolling.
|
static final int UP_DOWN
RollingLayout child views from top to bottom.static final int DOWN_UP
RollingLayout child views from bottom to top.static final int LEFT_RIGHT
RollingLayout child views from left to right.static final int RIGHT_LEFT
RollingLayout child views from right to left.void setRollingOrientation(int orientation)
orientation - rolling orientation for RollingLayout.void setRollingEachTime(int time)
time - the spend time of each rolling for RollingLayout.measure time by the millisecond.void setRollingPauseTime(int time)
time - the pause time . measure time by the millisecond.void setAdapter(android.widget.BaseAdapter adapter)
adapter - The BaseAdapter which is responsible for maintaining the
data backing this list and for producing a view to represent an
item in that data set.void startRolling()
void stopRolling()
void addOnRollingChangedListener(@NonNull
RollingLayoutAction.OnRollingChangedListener onRollingChangedListener)
void setOnRollingItemClickListener(@NonNull
RollingLayoutAction.OnRollingItemClickListener onRollingItemClickListener)