ParallaxToolbarConfig

class ParallaxToolbarConfig(val initialColor: Color, val targetColor: Color, val elevation: Dp, val animationSpec: AnimationSpec<Color>, val height: Dp = ParallaxToolbarDefaults.ToolbarHeight, val alwaysElevated: Boolean = false)(source)

Toolbar colors, elevation and height.

Parameters

height

Height of the pinned toolbar, excluding the status bar inset.

alwaysElevated

Draw the shadow while expanded too, instead of only once collapsed.

Constructors

Link copied to clipboard
constructor(initialColor: Color, targetColor: Color, elevation: Dp, animationSpec: AnimationSpec<Color>, height: Dp = ParallaxToolbarDefaults.ToolbarHeight, alwaysElevated: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Dp
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copy(initialColor: Color = this.initialColor, targetColor: Color = this.targetColor, elevation: Dp = this.elevation, animationSpec: AnimationSpec<Color> = this.animationSpec, height: Dp = this.height, alwaysElevated: Boolean = this.alwaysElevated): ParallaxToolbarConfig
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String