Build 1.0_r1(from source)

android.view
Class ViewConfiguration

java.lang.Object
  extended by android.view.ViewConfiguration

public class ViewConfiguration
extends Object

Contains methods to standard constants used in the UI for timeouts, sizes, and distances.


Constructor Summary
ViewConfiguration()
           
 
Method Summary
static int getEdgeSlop()
           
static int getFadingEdgeLength()
           
static long getGlobalActionKeyTimeout()
          The amount of time a user needs to press the relevant key to bring up the global actions dialog.
static int getJumpTapTimeout()
           
static int getLongPressTimeout()
           
static int getMaximumDrawingCacheSize()
          The maximum drawing cache size expressed in bytes.
static int getMinimumFlingVelocity()
          Minimum velocity to initiate a fling, as measured in pixels per second
static int getPressedStateDuration()
           
static int getScrollBarSize()
           
static float getScrollFriction()
          The amount of friction applied to scrolls and flings.
static int getTapTimeout()
           
static int getTouchSlop()
           
static int getWindowTouchSlop()
           
static long getZoomControlsTimeout()
          The amount of time that the zoom controls should be displayed on the screen expressed in milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewConfiguration

public ViewConfiguration()
Method Detail

getScrollBarSize

public static int getScrollBarSize()
Returns:
The width of the horizontal scrollbar and the height of the vertical scrollbar in pixels

getFadingEdgeLength

public static int getFadingEdgeLength()
Returns:
Defines the length of the fading edges in pixels

getPressedStateDuration

public static int getPressedStateDuration()
Returns:
Defines the duration in milliseconds of the pressed state in child components.

getLongPressTimeout

public static int getLongPressTimeout()
Returns:
Defines the duration in milliseconds before a press turns into a long press

getTapTimeout

public static int getTapTimeout()
Returns:
Defines the duration in milliseconds we will wait to see if a touch event is a top or a scroll. If the user does not move within this interval, it is considered to be a tap.

getJumpTapTimeout

public static int getJumpTapTimeout()
Returns:
Defines the duration in milliseconds we will wait to see if a touch event is a jump tap. If the user does not move within this interval, it is considered to be a tap.

getEdgeSlop

public static int getEdgeSlop()
Returns:
Inset in pixels to look for touchable content when the user touches the edge of the screen

getTouchSlop

public static int getTouchSlop()
Returns:
Distance a touch can wander before we think the user is scrolling in pixels

getWindowTouchSlop

public static int getWindowTouchSlop()
Returns:
Distance a touch must be outside the bounds of a window for it to be counted as outside the window for purposes of dismissing that window.

getMinimumFlingVelocity

public static int getMinimumFlingVelocity()
Minimum velocity to initiate a fling, as measured in pixels per second


getMaximumDrawingCacheSize

public static int getMaximumDrawingCacheSize()
The maximum drawing cache size expressed in bytes.

Returns:
the maximum size of View's drawing cache expressed in bytes

getZoomControlsTimeout

public static long getZoomControlsTimeout()
The amount of time that the zoom controls should be displayed on the screen expressed in milliseconds.

Returns:
the time the zoom controls should be visible expressed in milliseconds.

getGlobalActionKeyTimeout

public static long getGlobalActionKeyTimeout()
The amount of time a user needs to press the relevant key to bring up the global actions dialog.

Returns:
how long a user needs to press the relevant key to bring up the global actions dialog.

getScrollFriction

public static float getScrollFriction()
The amount of friction applied to scrolls and flings.

Returns:
A scalar dimensionless value representing the coefficient of friction.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature