public class ViewConfiguration extends Object
Constructor and Description |
---|
ViewConfiguration()
Deprecated.
Use
get(android.content.Context) instead. |
Modifier and Type | Method and Description |
---|---|
static ViewConfiguration |
get(Context context)
Returns a configuration for the specified context.
|
static int |
getDoubleTapSlop()
Deprecated.
Use
getScaledDoubleTapSlop() instead. |
static int |
getDoubleTapTimeout() |
static int |
getEdgeSlop()
Deprecated.
Use
getScaledEdgeSlop() instead. |
static int |
getFadingEdgeLength()
Deprecated.
Use
getScaledFadingEdgeLength() instead. |
static long |
getGlobalActionKeyTimeout()
The amount of time a user needs to press the relevant key to bring up
the global actions dialog.
|
static int |
getHoverTapSlop() |
static int |
getHoverTapTimeout() |
static int |
getJumpTapTimeout() |
static int |
getKeyRepeatDelay() |
static int |
getKeyRepeatTimeout() |
static int |
getLongPressTimeout() |
static int |
getMaximumDrawingCacheSize()
Deprecated.
Use
getScaledMaximumDrawingCacheSize() instead. |
static int |
getMaximumFlingVelocity()
Deprecated.
Use
getScaledMaximumFlingVelocity() instead. |
static int |
getMinimumFlingVelocity()
Deprecated.
Use
getScaledMinimumFlingVelocity() instead. |
static int |
getPressedStateDuration() |
int |
getScaledDoubleTapSlop() |
int |
getScaledDoubleTapTouchSlop() |
int |
getScaledEdgeSlop() |
int |
getScaledFadingEdgeLength() |
int |
getScaledMaximumDrawingCacheSize()
The maximum drawing cache size expressed in bytes.
|
int |
getScaledMaximumFlingVelocity() |
int |
getScaledMinimumFlingVelocity() |
int |
getScaledOverflingDistance() |
int |
getScaledOverscrollDistance() |
int |
getScaledPagingTouchSlop() |
int |
getScaledScrollBarSize() |
int |
getScaledTouchSlop() |
int |
getScaledWindowTouchSlop() |
static int |
getScrollBarFadeDuration() |
static int |
getScrollBarSize()
Deprecated.
Use
getScaledScrollBarSize() instead. |
static int |
getScrollDefaultDelay() |
static float |
getScrollFriction()
The amount of friction applied to scrolls and flings.
|
static long |
getSendRecurringAccessibilityEventsInterval()
Interval for dispatching a recurring accessibility event in milliseconds.
|
static int |
getTapTimeout() |
static int |
getTouchSlop()
Deprecated.
Use
getScaledTouchSlop() instead. |
static int |
getWindowTouchSlop()
Deprecated.
Use
getScaledWindowTouchSlop() instead. |
static long |
getZoomControlsTimeout()
The amount of time that the zoom controls should be
displayed on the screen expressed in milliseconds.
|
boolean |
hasPermanentMenuKey()
Report if the device has a permanent menu key available to the user.
|
boolean |
isFadingMarqueeEnabled() |
@Deprecated public ViewConfiguration()
get(android.content.Context)
instead.public static ViewConfiguration get(Context context)
context
- The application context used to initialize the view configuration.@Deprecated public static int getScrollBarSize()
getScaledScrollBarSize()
instead.public int getScaledScrollBarSize()
public static int getScrollBarFadeDuration()
public static int getScrollDefaultDelay()
@Deprecated public static int getFadingEdgeLength()
getScaledFadingEdgeLength()
instead.public int getScaledFadingEdgeLength()
public static int getPressedStateDuration()
public static int getLongPressTimeout()
public static int getKeyRepeatTimeout()
public static int getKeyRepeatDelay()
public static int getTapTimeout()
public static int getJumpTapTimeout()
public static int getDoubleTapTimeout()
public static int getHoverTapTimeout()
public static int getHoverTapSlop()
@Deprecated public static int getEdgeSlop()
getScaledEdgeSlop()
instead.public int getScaledEdgeSlop()
@Deprecated public static int getTouchSlop()
getScaledTouchSlop()
instead.public int getScaledTouchSlop()
public int getScaledDoubleTapTouchSlop()
public int getScaledPagingTouchSlop()
@Deprecated public static int getDoubleTapSlop()
getScaledDoubleTapSlop()
instead.public int getScaledDoubleTapSlop()
public static long getSendRecurringAccessibilityEventsInterval()
getSendRecurringAccessibilityEventsInterval()
time frame.@Deprecated public static int getWindowTouchSlop()
getScaledWindowTouchSlop()
instead.public int getScaledWindowTouchSlop()
@Deprecated public static int getMinimumFlingVelocity()
getScaledMinimumFlingVelocity()
instead.public int getScaledMinimumFlingVelocity()
@Deprecated public static int getMaximumFlingVelocity()
getScaledMaximumFlingVelocity()
instead.public int getScaledMaximumFlingVelocity()
@Deprecated public static int getMaximumDrawingCacheSize()
getScaledMaximumDrawingCacheSize()
instead.public int getScaledMaximumDrawingCacheSize()
public int getScaledOverscrollDistance()
public int getScaledOverflingDistance()
public static long getZoomControlsTimeout()
public static long getGlobalActionKeyTimeout()
public static float getScrollFriction()
public boolean hasPermanentMenuKey()
As of Android 3.0, devices may not have a permanent menu key available. Apps should use the action bar to present menu options to users. However, there are some apps where the action bar is inappropriate or undesirable. This method may be used to detect if a menu key is present. If not, applications should provide another on-screen affordance to access functionality.
public boolean isFadingMarqueeEnabled()