Parallax Title Config
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
collapsed Scale
Scale of the title block once collapsed, e.g. 0.8f to shrink it into the toolbar. It scales about its start edge.
collapsed Alignment
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.
Properties
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