DecelerateStickHelperpublic class LinearStickHelper extends StickHelper
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
STICK_CENTER |
Indicates that the center of the visible area is used as the stick position.
|
static int |
STICK_END |
Indicates that the end position of the visible area is used as the stick position.
|
static int |
STICK_START |
Indicates that the start position of the visible area is used as the stick position.
|
mNativePtr| 构造器 | 说明 |
|---|---|
LinearStickHelper() |
Default constructor used to create a
LinearStickHelper object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
protected void |
createNativePtr() |
|
int |
getMaxItemOffsetForFling() |
Obtains the maximum position offset for a fling.
|
int |
getStickType() |
Obtains the stick type.
|
void |
setMaxItemOffsetForFling(int offset) |
Sets the maximum position offset for a fling.
|
void |
setStickType(int stickType) |
Sets the stick type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitboundToListComponent, getNativePtrpublic static final int STICK_CENTER
public static final int STICK_END
public static final int STICK_START
public LinearStickHelper()
LinearStickHelper object.protected void createNativePtr()
public void setStickType(int stickType)
stickType - Indicates the stick type to set, which can be STICK_START, STICK_CENTER, or
STICK_END.public int getStickType()
STICK_START, STICK_CENTER, or STICK_END.public void setMaxItemOffsetForFling(int offset)
offset - Indicates the offset to set.public int getMaxItemOffsetForFling()