MaxWidthLinearLayout

class MaxWidthLinearLayout @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null) : LinearLayout

A LinearLayout subclass that allows dynamic maximum width constraint on its layout bounds.

Constructors

Link copied to clipboard
constructor(context: Context, attrs: AttributeSet? = null)

Properties

Link copied to clipboard

Whether horizontal padding (paddingLeft and paddingRight) should be excluded when calculating the effective maximum width.

Link copied to clipboard

The maximum width constraint in pixels. Changing this property triggers a requestLayout.