-
public final class ViewConfigurationCompatHelper for accessing features in ViewConfiguration.
-
-
Method Summary
Modifier and Type Method Description static intgetScaledPagingTouchSlop(ViewConfiguration config)Call getScaledPagingTouchSlop. static booleanhasPermanentMenuKey(ViewConfiguration config)Report if the device has a permanent menu key available to the user, in a backwardscompatible way. static floatgetScaledHorizontalScrollFactor(@NonNull() ViewConfiguration config, @NonNull() Context context)static floatgetScaledVerticalScrollFactor(@NonNull() ViewConfiguration config, @NonNull() Context context)static intgetScaledHoverSlop(ViewConfiguration config)static booleanshouldShowMenuShortcutsWhenKeyboardPresent(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.
-
-
-
-