InitBorderDistancesStrategy

Strategy for initializing the border distances.

Inheritors

Types

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
data class WithDp(val topPaddingInDp: Int = 0, val bottomPaddingInDp: Int = 0, val leftPaddingInDp: Int = 0, val rightPaddingInDp: Int = 0) : InitBorderDistancesStrategy

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

Link copied to clipboard
data class WithViewId(@IdRes val viewId: Int) : InitBorderDistancesStrategy

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)