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