Custom

data class Custom(val top: Dp = 0.dp, val bottom: Dp = 0.dp, val start: Dp = 0.dp, val end: Dp = 0.dp, val includesSideSystemBars: Boolean = false) : ToolbarInsets

Reserve a fixed inset on each edge. start / end are logical: they resolve to the right / left edge in an RTL layout.

Constructors

Link copied to clipboard
constructor(top: Dp = 0.dp, bottom: Dp = 0.dp, start: Dp = 0.dp, end: Dp = 0.dp, includesSideSystemBars: Boolean = false)

Properties

Link copied to clipboard
val bottom: Dp

Inset applied to the bottom edge of the toolbar content. Defaults to 0.dp.

Link copied to clipboard
val end: Dp

Inset applied to the end (trailing) edge of the toolbar content. Defaults to 0.dp.

Link copied to clipboard
open override val includesSideSystemBars: Boolean

Whether the landscape side system bars are reserved on top of start / end. Defaults to false, so a Custom value is taken literally: a host that has already accounted for the navigation bar, or that places the toolbar away from the window edges, gets exactly the insets it asked for. Pass true for a toolbar you mount edge-to-edge yourself.

Link copied to clipboard
val start: Dp

Inset applied to the start (leading) edge of the toolbar content. Defaults to 0.dp.

Link copied to clipboard
val top: Dp

Inset applied to the top edge of the toolbar content. Defaults to 0.dp.