Companion

object Companion

Default values and constants shared by GestureBitmapView instances.

Properties

Link copied to clipboard

Duration of scale, translate or rotation animations expressed in milliseconds.

Link copied to clipboard

Value of cachedLevelsMemoryBudget meaning that the budget is 4 times the number of pixels of the view, 4 bytes each.

Link copied to clipboard
const val DEFAULT_MAX_SCALE: Float = 10.0f

Maximum scale factor to be used by default when displaying the image.

Link copied to clipboard

Margin on maximum scale so that a bounce effect happens when maximum image scale reaches the limit.

Link copied to clipboard
const val DEFAULT_MIN_SCALE: Float = 1.0f

Minimum scale factor to be used by default when displaying the image.

Link copied to clipboard

Margin on minimum scale so that a bounce effect happens when minimum image scale reaches the limit.

Link copied to clipboard

Scale jump to make when doing a double tap.

Link copied to clipboard
const val DEFAULT_SCROLL_MARGIN: Float = 100.0f

Default margin on allowed scroll expressed in pixels. This value determines the amount of bounce when a scroll limit is reached.

Link copied to clipboard
const val DEFAULT_SCROLL_TENSION: Float = 1.0f

Default amount of tension applied when overscrolling (linear resistance).