IT. Expert System.

Android Reference

OverScrollGlow


android.webkit

Class OverScrollGlow



  • public class OverScrollGlow
    extends Object
    This class manages the edge glow effect when a WebView is flung or pulled beyond the edges.
    • Method Detail

      • pullGlow

        public void pullGlow(int x,
                    int y,
                    int oldX,
                    int oldY,
                    int maxX,
                    int maxY)
        Pull leftover touch scroll distance into one of the edge glows as appropriate.
        Parameters:
        x - Current X scroll offset
        y - Current Y scroll offset
        oldX - Old X scroll offset
        oldY - Old Y scroll offset
        maxX - Maximum range for horizontal scrolling
        maxY - Maximum range for vertical scrolling
      • setOverScrollDeltas

        public void setOverScrollDeltas(int deltaX,
                               int deltaY)
        Set touch delta values indicating the current amount of overscroll.
        Parameters:
        deltaX -
        deltaY -
      • absorbGlow

        public void absorbGlow(int x,
                      int y,
                      int oldX,
                      int oldY,
                      int rangeX,
                      int rangeY)
        Absorb leftover fling velocity into one of the edge glows as appropriate.
        Parameters:
        x - Current X scroll offset
        y - Current Y scroll offset
        oldX - Old X scroll offset
        oldY - Old Y scroll offset
        rangeX - Maximum range for horizontal scrolling
        rangeY - Maximum range for vertical scrolling
      • drawEdgeGlows

        public boolean drawEdgeGlows(Canvas canvas)
        Draw the glow effect along the sides of the widget. mEdgeGlow* must be non-null.
        Parameters:
        canvas - Canvas to draw into, transformed into view coordinates.
        Returns:
        true if glow effects are still animating and the view should invalidate again.
      • isAnimating

        public boolean isAnimating()
        Returns:
        True if any glow is still animating
      • releaseAll

        public void releaseAll()
        Release all glows from any touch pulls in progress.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2033 / . Delta: 0.02825 с