Skip to content

Most visited

Recently visited

navigation
added in version 22.0.0
Deprecated since API level 26.0.0

ViewConfigurationCompat

public final class ViewConfigurationCompat
extends Object

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


This class was deprecated in API level 26.0.0.
Use ViewConfiguration directly.

Helper for accessing features in ViewConfiguration.

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 was deprecated in API level 26.0.0. Use hasPermanentMenuKey() directly.

Inherited methods

From class java.lang.Object

Public methods

getScaledHorizontalScrollFactor

added in version 26.0.0
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

added in version 26.0.0
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 was deprecated in API level 26.0.0.
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.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

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 short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)