belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
ViewConfigurationCompat
public
final
class
ViewConfigurationCompat
extends Object
java.lang.Object | |
↳ | android.support.v4.view.ViewConfigurationCompat |
Helper for accessing features in ViewConfiguration
.
Summary
Public methods | |
---|---|
static
float
|
getScaledHorizontalScrollFactor(ViewConfiguration config, Context context)
|
static
int
|
getScaledHoverSlop(ViewConfiguration config)
|
static
int
|
getScaledPagingTouchSlop(ViewConfiguration config)
This method was deprecated
in API level 25.1.0.
Call |
static
float
|
getScaledVerticalScrollFactor(ViewConfiguration config, Context context)
|
static
boolean
|
hasPermanentMenuKey(ViewConfiguration config)
This method was deprecated
in API level 26.1.0.
Use |
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.
|
getScaledHoverSlop
int getScaledHoverSlop (ViewConfiguration config)
Parameters | |
---|---|
config |
ViewConfiguration : Used to get the hover slop directly from the ViewConfiguration . |
Returns | |
---|---|
int |
The hover slop value. |
getScaledPagingTouchSlop
int getScaledPagingTouchSlop (ViewConfiguration config)
This method was deprecated
in API level 25.1.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
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 |
Returns | |
---|---|
boolean |
Annotations
Interfaces
- ActionProvider.VisibilityListener
- AsyncLayoutInflater.OnInflateFinishedListener
- LayoutInflaterFactory
- MenuItemCompat.OnActionExpandListener
- NestedScrollingChild
- NestedScrollingChild2
- NestedScrollingParent
- NestedScrollingParent2
- OnApplyWindowInsetsListener
- ScrollingView
- TintableBackgroundView
- ViewPager.OnAdapterChangeListener
- ViewPager.OnPageChangeListener
- ViewPager.PageTransformer
- ViewPropertyAnimatorListener
- ViewPropertyAnimatorUpdateListener
Classes
- AbsSavedState
- AccessibilityDelegateCompat
- ActionProvider
- AsyncLayoutInflater
- GestureDetectorCompat
- GravityCompat
- InputDeviceCompat
- LayoutInflaterCompat
- MarginLayoutParamsCompat
- MenuCompat
- MenuItemCompat
- MotionEventCompat
- NestedScrollingChildHelper
- NestedScrollingParentHelper
- PagerAdapter
- PagerTabStrip
- PagerTitleStrip
- PointerIconCompat
- ScaleGestureDetectorCompat
- VelocityTrackerCompat
- ViewCompat
- ViewConfigurationCompat
- ViewGroupCompat
- ViewPager
- ViewPager.LayoutParams
- ViewPager.SavedState
- ViewPager.SimpleOnPageChangeListener
- ViewParentCompat
- ViewPropertyAnimatorCompat
- ViewPropertyAnimatorListenerAdapter
- WindowCompat
- WindowInsetsCompat