belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
EdgeEffectCompat
public
final
class
EdgeEffectCompat
extends Object
java.lang.Object | |
↳ | android.support.v4.widget.EdgeEffectCompat |
Helper for accessing EdgeEffect
.
This class is used to access EdgeEffect
on platform versions
that support it. When running on older platforms it will result in no-ops. It should
be used by views that wish to use the standard Android visual effects at the edges
of scrolling containers.
Summary
Public constructors | |
---|---|
EdgeEffectCompat(Context context)
This constructor was deprecated
in API level 26.1.0.
Use |
Public methods | |
---|---|
boolean
|
draw(Canvas canvas)
This method was deprecated
in API level 26.1.0.
Use |
void
|
finish()
This method was deprecated
in API level 26.1.0.
Use |
boolean
|
isFinished()
This method was deprecated
in API level 26.1.0.
Use |
boolean
|
onAbsorb(int velocity)
This method was deprecated
in API level 26.1.0.
Use |
boolean
|
onPull(float deltaDistance)
This method was deprecated
in API level 22.1.0.
Use |
boolean
|
onPull(float deltaDistance, float displacement)
This method was deprecated
in API level 26.1.0.
Use |
static
void
|
onPull(EdgeEffect edgeEffect, float deltaDistance, float displacement)
A view should call this when content is pulled away from an edge by the user. |
boolean
|
onRelease()
This method was deprecated
in API level 26.1.0.
Use |
void
|
setSize(int width, int height)
This method was deprecated
in API level 26.1.0.
Use |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Public constructors
EdgeEffectCompat
EdgeEffectCompat (Context context)
This constructor was deprecated
in API level 26.1.0.
Use EdgeEffect
constructor directly.
Construct a new EdgeEffect themed using the given context.
Note: On platform versions that do not support EdgeEffect, all operations on the newly constructed object will be mocked/no-ops.
Parameters | |
---|---|
context |