DividerAttributes.DragRange.SplitRatioDragRange


class DividerAttributes.DragRange.SplitRatioDragRange : DividerAttributes.DragRange


A drag range represented as an interval of the primary container's split ratios.

Throws
kotlin.IllegalArgumentException

if the provided values are invalid.

Summary

Public constructors

SplitRatioDragRange(
    minRatio: @FloatRange(from = 0.0, to = 1.0, fromInclusive = false, toInclusive = false) Float,
    maxRatio: @FloatRange(from = 0.0, to = 1.0, fromInclusive = false, toInclusive = false) Float
)

constructs a new SplitRatioDragRange

Public functions

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

Public properties

Float

the maximum split ratio of the primary container that the user is allowed to drag to.

Float

the minimum split ratio of the primary container that the user is allowed to drag to.

Public constructors

SplitRatioDragRange

Added in 1.4.0-alpha01
SplitRatioDragRange(
    minRatio: @FloatRange(from = 0.0, to = 1.0, fromInclusive = false, toInclusive = false) Float,
    maxRatio: @FloatRange(from = 0.0, to = 1.0, fromInclusive = false, toInclusive = false) Float
)

constructs a new SplitRatioDragRange

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

maxRatio

Added in 1.4.0-alpha01
val maxRatioFloat

the maximum split ratio of the primary container that the user is allowed to drag to. When the divider is dragged beyond this ratio, the system will choose to either fully expand the primary container, or move the divider back to this ratio.

minRatio

Added in 1.4.0-alpha01
val minRatioFloat

the minimum split ratio of the primary container that the user is allowed to drag to. When the divider is dragged beyond this ratio, the system will choose to either fully expand the secondary container, or move the divider back to this ratio.