Example usage for Java android.widget EdgeEffect fields, constructors, methods, implement or subclass
The text is from its open source code.
EdgeEffect(Context context) Construct a new EdgeEffect with a theme appropriate for the provided context. |
boolean | draw(Canvas canvas) Draw into the provided canvas. |
boolean | isFinished() Reports if this EdgeEffect's animation is finished. |
void | onAbsorb(int velocity) Call when the effect absorbs an impact at the given velocity. |
void | onPull(float deltaDistance, float displacement) A view should call this when content is pulled away from an edge by the user. |
void | onPull(float deltaDistance) A view should call this when content is pulled away from an edge by the user. |
void | setColor(@ColorInt int color) Set the color of this edge effect in argb. |
void | setSize(int width, int height) Set the size of this edge effect in pixels. |