PaneExpansionAnchor.Proportion


PaneExpansionAnchor implementation that specifies the anchor position in the proportion of the total size of the layout at the start side of the anchor.

Summary

Public constructors

Proportion(proportion: @FloatRange(from = 0.0, to = 1.0) Float)
Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

open String

The description of the anchor that will be used in androidx.compose.ui.semantics.SemanticsProperties like accessibility services.

Cmn
Float

the proportion of the layout at the start side of the anchor.

Cmn

Public constructors

Proportion

Proportion(proportion: @FloatRange(from = 0.0, to = 1.0) Float)
Parameters
proportion: @FloatRange(from = 0.0, to = 1.0) Float

the proportion of the layout at the start side of the anchor. For example, if the current layout from the start to the end is list-detail, when the proportion value is 0.3 and this anchor is used, the list pane will occupy 30% of the layout and the detail pane will occupy 70% of it.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

description

open val descriptionString

The description of the anchor that will be used in androidx.compose.ui.semantics.SemanticsProperties like accessibility services.

proportion

val proportionFloat

the proportion of the layout at the start side of the anchor. For example, if the current layout from the start to the end is list-detail, when the proportion value is 0.3 and this anchor is used, the list pane will occupy 30% of the layout and the detail pane will occupy 70% of it.