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-beta1.
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 |
static
float
|
getScaledVerticalScrollFactor(ViewConfiguration config, Context context)
|
static
boolean
|
hasPermanentMenuKey(ViewConfiguration config)
This method was deprecated
in API level 26.0.0-beta1.
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.
|
getScaledPagingTouchSlop
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
boolean hasPermanentMenuKey (ViewConfiguration config)
This method was deprecated
in API level 26.0.0-beta1.
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
- KeyEventCompat
- 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

