added in
version 22.1.0
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
ViewConfigurationCompat
This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings .
public
final
class
ViewConfigurationCompat
extends Object
java.lang.Object
↳
android.support.v4.view.ViewConfigurationCompat
Helper for accessing features in ViewConfiguration
.
Summary
Inherited methods
From
class
java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
final
Class<?>
getClass()
int
hashCode()
final
void
notify()
final
void
notifyAll()
String
toString()
final
void
wait(long arg0, int arg1)
final
void
wait(long arg0)
final
void
wait()
Public methods
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.
getScaledHoverSlop
int getScaledHoverSlop (ViewConfiguration config)
Parameters
config
ViewConfiguration
: Used to get the hover slop directly from the ViewConfiguration
.
Returns
int
The hover slop value.
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.
boolean hasPermanentMenuKey (ViewConfiguration config)
This method was deprecated
in API level 26.1.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
Annotations
Interfaces
Classes
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]