public class EdgeEffect
extends java.lang.Object
Constructor and Description |
---|
EdgeEffect(android.content.Context context)
Construct a new EdgeEffect with a theme appropriate for the provided context.
|
Modifier and Type | Method and Description |
---|---|
boolean |
draw(android.graphics.Canvas canvas) |
void |
finish() |
int |
getColor() |
int |
getMaxHeight() |
boolean |
isFinished() |
void |
onAbsorb(int velocity) |
void |
onPull(float deltaDistance) |
void |
onPull(float deltaDistance,
float displacement) |
void |
onRelease() |
void |
setColor(int color) |
void |
setSize(int width,
int height)
Set the size of this edge effect in pixels.
|
public EdgeEffect(android.content.Context context)
context
- Context used to provide theming and resource information for the EdgeEffectpublic void setSize(int width, int height)
width
- Effect width in pixelsheight
- Effect height in pixelspublic boolean isFinished()
public void finish()
public void onPull(float deltaDistance)
public void onPull(float deltaDistance, float displacement)
public void onRelease()
public void onAbsorb(int velocity)
public void setColor(int color)
public int getColor()
public boolean draw(android.graphics.Canvas canvas)
public int getMaxHeight()