English | Site Directory

Android - An Open Handset Alliance Project

android.view
public class

android.view.ViewConfiguration

java.lang.Object
android.view.ViewConfiguration

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

Summary

Public Constructors

          ViewConfiguration()

Public Methods

      static  float  getDisabledAlpha()
      static  int  getFadingEdgeLength()
      static  int  getLongPressTimeout()
      static  int  getPressedStateDuration()
      static  int  getScrollBarFadeDuration()
      static  int  getScrollBarSize()
      static  int  getScrollDefaultDelay()
      static  int  getTapTimeout()
      static  int  getTouchSlop()
Methods inherited from class java.lang.Object

Details

Public Constructors

public ViewConfiguration()

Public Methods

public static float getDisabledAlpha()

Returns

  • The alpha to apply to views in the disabled state

public static int getFadingEdgeLength()

Returns

  • Defines the length of the fading edges in pixels

public static int getLongPressTimeout()

Returns

  • Defines the duration in milliseconds before a press turns into a long press

public static int getPressedStateDuration()

Returns

  • Defines the duration in milliseconds of the pressed state in child components.

public static int getScrollBarFadeDuration()

Returns

  • Duration of the fade when scrollbars fade away in milliseconds

public static int getScrollBarSize()

Returns

  • The width of the horizontal scrollbar and the height of the vertical scrollbar in pixels

public static int getScrollDefaultDelay()

Returns

  • Default delay before the scrollbars fade in milliseconds

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.

public static int getTouchSlop()

Returns

  • Distance a touch can wander before we think the user is scrolling in pixels
Build m5-rc15g - 14 May 2008 12:50