BorderDistancesStrategy

@Serializable
sealed class BorderDistancesStrategy : Parcelable

Strategy for initializing the border distances.

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "Default")
data object Default : BorderDistancesStrategy

Strategy for the case when the border distances are not initialized.

Link copied to clipboard
@Serializable
@SerialName(value = "WithCustomView")
data class WithCustomView(@IdRes val viewId: Int) : BorderDistancesStrategy

Strategy for the case when the border distances are initialized with the custom view. Custom view must implement MeasureBorderDistances.

Link copied to clipboard
@Serializable
@SerialName(value = "WithDp")
data class WithDp(val topPaddingInDp: Int = 8, val bottomPaddingInDp: Int = 8, val leftPaddingInDp: Int = 8, val rightPaddingInDp: Int = 8) : BorderDistancesStrategy

Strategy for the case when the border distances are initialized with the dp.

Link copied to clipboard
@Serializable
@SerialName(value = "WithViewId")
data class WithViewId(@IdRes val viewId: Int) : BorderDistancesStrategy

Strategy for the case when the border distances are initialized with the borders of view.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)