Skip to content

Most visited

Recently visited

navigation

ViewConfigurationCompat

public final class ViewConfigurationCompat
extends Object

java.lang.Object
   ↳ android.support.v4.view.ViewConfigurationCompat


This class is deprecated.
Use ViewConfiguration directly.

Helper for accessing features in ViewConfiguration in a backwards compatible fashion.

Summary

Public methods

static float getScaledHorizontalScrollFactor(ViewConfiguration config, Context context)
static int getScaledPagingTouchSlop(ViewConfiguration config)

This method was deprecated in API level 24.2.0. Call getScaledPagingTouchSlop() directly. This method will be removed in a future release.

static float getScaledVerticalScrollFactor(ViewConfiguration config, Context context)
static boolean hasPermanentMenuKey(ViewConfiguration config)

This method is deprecated. Use hasPermanentMenuKey() directly.

Inherited methods

From class java.lang.Object

Public methods

getScaledHorizontalScrollFactor

float getScaledHorizontalScrollFactor (ViewConfiguration config, 
                Context context)

Parameters
config ViewConfiguration: Used to get the scaling factor directly from the ViewConfiguration.
context Context: Used to locate a resource value.
Returns
float Amount to scroll in response to a horizontal ACTION_SCROLL event. Multiply this by the event's axis value to obtain the number of pixels to be scrolled.

getScaledPagingTouchSlop

added in version 22.0.0
int getScaledPagingTouchSlop (ViewConfiguration config)

This method was deprecated in API level 24.2.0.
Call getScaledPagingTouchSlop() directly. This method will be removed in a future release.

Call getScaledPagingTouchSlop().

Parameters
config ViewConfiguration
Returns
int

getScaledVerticalScrollFactor

float getScaledVerticalScrollFactor (ViewConfiguration config, 
                Context context)

Parameters
config ViewConfiguration: Used to get the scaling factor directly from the ViewConfiguration.
context Context: Used to locate a resource value.
Returns
float Amount to scroll in response to a vertical ACTION_SCROLL event. Multiply this by the event's axis value to obtain the number of pixels to be scrolled.

hasPermanentMenuKey

added in version 22.0.0
boolean hasPermanentMenuKey (ViewConfiguration config)

This method is deprecated.
Use hasPermanentMenuKey() directly.

Report if the device has a permanent menu key available to the user, in a backwards compatible way.

Parameters
config ViewConfiguration
Returns
boolean
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.