{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

ViewConfiguration

Known direct subclasses

Contains methods to standard constants used in the UI for timeouts, sizes, and distances.

Summary

Public properties

Long

The minimum duration between the first tap's up event and the second tap's down event for an interaction to be considered a double-tap.

Cmn
Long

The duration between the first tap's up event and the second tap's down event for an interaction to be considered a double-tap.

Cmn
Long

The duration before a press turns into a long press.

Cmn
open DpSize

The minimum touch target size.

Cmn
Float

Distance in pixels a touch can wander before we think the user is scrolling.

Cmn

Public properties

doubleTapMinTimeMillis

val doubleTapMinTimeMillisLong

The minimum duration between the first tap's up event and the second tap's down event for an interaction to be considered a double-tap.

doubleTapTimeoutMillis

val doubleTapTimeoutMillisLong

The duration between the first tap's up event and the second tap's down event for an interaction to be considered a double-tap.

longPressTimeoutMillis

val longPressTimeoutMillisLong

The duration before a press turns into a long press.

minimumTouchTargetSize

open val minimumTouchTargetSizeDpSize

The minimum touch target size. If layout has reduced the pointer input bounds below this, the touch target will be expanded evenly around the layout to ensure that it is at least this big.

touchSlop

val touchSlopFloat

Distance in pixels a touch can wander before we think the user is scrolling.