LayoutParams

Per-child layout information associated with WeightlessLinearLayout.

Constructors

Link copied to clipboard
constructor(c: Context, attrs: AttributeSet)
constructor(width: Int, height: Int)
constructor(width: Int, height: Int, maxWidthPercent: Float, maxHeightPercent: Float)
Creates a new set of layout parameters with the specified width, height and max width/height percentages.
constructor(p: ViewGroup.LayoutParams)
constructor(source: ViewGroup.MarginLayoutParams)

Properties

Link copied to clipboard
open var gravity: Int
Gravity for the view associated with these LayoutParams.
Link copied to clipboard
Link copied to clipboard

Inherited properties

Link copied to clipboard
open var bottomMargin: Int
Link copied to clipboard
val FILL_PARENT: Int = -1
Link copied to clipboard
open var height: Int
Link copied to clipboard
open var leftMargin: Int
Link copied to clipboard
val MATCH_PARENT: Int = -1
Link copied to clipboard
open var rightMargin: Int
Link copied to clipboard
open var topMargin: Int
Link copied to clipboard
open var width: Int
Link copied to clipboard
val WRAP_CONTENT: Int = -2

Functions

Link copied to clipboard
open fun toString(): String

Inherited functions

Link copied to clipboard
Link copied to clipboard
open fun getMarginEnd(): Int
Link copied to clipboard
open fun getMarginStart(): Int
Link copied to clipboard
Link copied to clipboard
open fun resolveLayoutDirection(layoutDirection: Int)
Link copied to clipboard
open fun setLayoutDirection(layoutDirection: Int)
Link copied to clipboard
open fun setMarginEnd(end: Int)
Link copied to clipboard
open fun setMargins(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun setMarginStart(start: Int)