public static class ListComponent.ReboundEffectParams extends Object
| 构造器 | 说明 |
|---|---|
ReboundEffectParams(int overscrollPercent,
float overscrollRate,
int remainVisiblePercent) |
A constructor used to create a
ReboundEffectParams instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getOverscrollPercent() |
Obtains the value of
overscrollPercent. |
float |
getOverscrollRate() |
Obtains the value of
overscrollRate. |
int |
getRemainVisiblePercent() |
Obtains the value of
remainVisiblePercent. |
void |
setOverscrollPercent(int overscrollPercent) |
Sets a value for
overscrollPercent. |
void |
setOverscrollRate(float overscrollRate) |
Sets a value for
overscrollRate. |
void |
setRemainVisiblePercent(int remainVisiblePercent) |
Sets a value for
remainVisiblePercent. |
public ReboundEffectParams(int overscrollPercent,
float overscrollRate,
int remainVisiblePercent)
ReboundEffectParams instance.overscrollPercent - Indicates the overscroll percent. The default value is 40.
If the percent of scrolled content exceeds the value of this parameter, the
content scrolling speed is affected by the overscrollRate parameter.
Specifically, if the value of overscrollRate is less than 1.0,
your finger moves faster than the content.overscrollRate - Indicates the overscroll rate. The default value is 0.6. This parameter
affects the content scrolling speed if the percent of scrolled content exceeds
the value of the overscrollPercent parameter. Specifically, the content
scrolling speed is equal to the finger scrolling speed multiplied by the value
of overscrollRate.remainVisiblePercent - Indicates the minimum percent of scrollable content that should remain visible
during overscrolling. The default value is 20.public int getOverscrollPercent()
overscrollPercent.overscrollPercent.public float getOverscrollRate()
overscrollRate.overscrollRate.public int getRemainVisiblePercent()
remainVisiblePercent.remainVisiblePercent.public void setOverscrollPercent(int overscrollPercent)
overscrollPercent.overscrollPercent - Indicates the value to set. This parameter indicates the overscroll percent. The
default value is 40. If the percent of scrolled content exceeds the value of this parameter,
the content scrolling speed is affected by the overscrollRate parameter. Specifically, if the
value of overscrollRate is less than 1.0, your finger moves faster than the content.public void setOverscrollRate(float overscrollRate)
overscrollRate.overscrollRate - Indicates the value to set. This parameter indicates the overscroll rate. The default
value is 0.6. This parameter affects the content scrolling speed if the percent of scrolled
content exceeds the value of the overscrollPercent parameter. Specifically, the content
scrolling speed is equal to the finger scrolling speed multiplied by the value of
overscrollRate.public void setRemainVisiblePercent(int remainVisiblePercent)
remainVisiblePercent.remainVisiblePercent - Indicates the value to set. This parameter indicates the minimum percent of
scrollable content that should remain visible during overscrolling. The default value is 20.