CoverFlowParams

data class CoverFlowParams(val size: Float = 0.5f, val offset: Float = 0.4f, val distanceFactor: DistanceFactor = OffsetLinearDistanceFactor(), val angle: Float = 55.0f, val shift: Float = 0.4f, val zoom: Float = 0.8f, val mirror: Boolean = true) : Parcelable

Params for configuring the coverflow composable.

All relevant values are relativ to the dimensions of the CoverFlow composable to make it responsive. It is based on the shorter of the two sides of the outer component.

Parameters

size

is multiplied with that edge to get the cover size in the middle.

offset

is multiplied with that edge to get the distance between two covers in the list.

distanceFactor

calculates how strong the transformations are applied to covers depending on their distance to the center.

angle

is the maximum rotation angle.

shift

is the horizontal shift of the items away from the center. Useful for giving the center element more space.

zoom

makes the side elements smaller.

mirror

acitvates the mirror effect.

Constructors

Link copied to clipboard
constructor(size: Float = 0.5f, offset: Float = 0.4f, distanceFactor: DistanceFactor = OffsetLinearDistanceFactor(), angle: Float = 55.0f, shift: Float = 0.4f, zoom: Float = 0.8f, mirror: Boolean = true)

Properties

Link copied to clipboard
val angle: Float = 55.0f
Link copied to clipboard
Link copied to clipboard
val mirror: Boolean = true
Link copied to clipboard
val offset: Float = 0.4f
Link copied to clipboard
val shift: Float = 0.4f
Link copied to clipboard
val size: Float = 0.5f
Link copied to clipboard
val zoom: Float = 0.8f

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)