ParallaxTitleConfig

class ParallaxTitleConfig(val paddingBottom: Dp, val paddingStart: Dp, val collapsedPaddingStart: Dp, val keepSubtitleAfterCollapse: Boolean, val animateSubTitleHiding: Boolean, val collapsedScale: Float = ParallaxToolbarDefaults.TitleCollapsedScale, val collapsedAlignment: Alignment.Horizontal = Alignment.Start)(source)

Title and subtitle placement and collapse behavior.

Parameters

collapsedScale

Scale of the title block once collapsed, e.g. 0.8f to shrink it into the toolbar. It scales about its start edge.

collapsedAlignment

Where the collapsed title sits in the space between the navigation icon and the actions: Alignment.Start next to the navigation icon at collapsedPaddingStart, Alignment.CenterHorizontally centered as on iOS, or Alignment.End before the actions.

Constructors

Link copied to clipboard
constructor(paddingBottom: Dp, paddingStart: Dp, collapsedPaddingStart: Dp, keepSubtitleAfterCollapse: Boolean, animateSubTitleHiding: Boolean, collapsedScale: Float = ParallaxToolbarDefaults.TitleCollapsedScale, collapsedAlignment: Alignment.Horizontal = Alignment.Start)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copy(paddingBottom: Dp = this.paddingBottom, paddingStart: Dp = this.paddingStart, collapsedPaddingStart: Dp = this.collapsedPaddingStart, keepSubtitleAfterCollapse: Boolean = this.keepSubtitleAfterCollapse, animateSubTitleHiding: Boolean = this.animateSubTitleHiding, collapsedScale: Float = this.collapsedScale, collapsedAlignment: Alignment.Horizontal = this.collapsedAlignment): ParallaxTitleConfig
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