-
public final class ViewConfigurationCompat
Helper for accessing features in ViewConfiguration.
-
-
Method Summary
Modifier and Type Method Description static int
getScaledPagingTouchSlop(ViewConfiguration config)
Call getScaledPagingTouchSlop. static boolean
hasPermanentMenuKey(ViewConfiguration config)
Report if the device has a permanent menu key available to the user, in a backwardscompatible way. static float
getScaledHorizontalScrollFactor(@NonNull() ViewConfiguration config, @NonNull() Context context)
static float
getScaledVerticalScrollFactor(@NonNull() ViewConfiguration config, @NonNull() Context context)
static int
getScaledHoverSlop(ViewConfiguration config)
static boolean
shouldShowMenuShortcutsWhenKeyboardPresent(ViewConfiguration config, @NonNull() Context context)
Check if shortcuts should be displayed in menus. -
-
Method Detail
-
getScaledPagingTouchSlop
@Deprecated() static int getScaledPagingTouchSlop(ViewConfiguration config)
Call getScaledPagingTouchSlop.
-
hasPermanentMenuKey
@Deprecated() static boolean hasPermanentMenuKey(ViewConfiguration config)
Report if the device has a permanent menu key available to the user, in a backwardscompatible way.
-
getScaledHorizontalScrollFactor
static float getScaledHorizontalScrollFactor(@NonNull() ViewConfiguration config, @NonNull() Context context)
- Parameters:
config
- Used to get the scaling factor directly from the ViewConfiguration.context
- Used to locate a resource value.
-
getScaledVerticalScrollFactor
static float getScaledVerticalScrollFactor(@NonNull() ViewConfiguration config, @NonNull() Context context)
- Parameters:
config
- Used to get the scaling factor directly from the ViewConfiguration.context
- Used to locate a resource value.
-
getScaledHoverSlop
static int getScaledHoverSlop(ViewConfiguration config)
- Parameters:
config
- Used to get the hover slop directly from the ViewConfiguration.
-
shouldShowMenuShortcutsWhenKeyboardPresent
static boolean shouldShowMenuShortcutsWhenKeyboardPresent(ViewConfiguration config, @NonNull() Context context)
Check if shortcuts should be displayed in menus.
-
-
-
-