computeCardStep

fun computeCardStep(cardHeight: Double, unfocusedVisiblePercent: Int, spacing: Double): Double

Computes the vertical step distance allocated to a card in standard list mode.

Return

vertical distance in dp/points to the next card header.

Parameters

cardHeight

rendered height of the card.

unfocusedVisiblePercent

percentage of each card visible when unfocused (0 to 100).

spacing

vertical spacing applied when visible percent is 100.