LayoutParams

constructor(c: Context, attrs: AttributeSet)
constructor(width: Int, height: Int)
constructor(p: ViewGroup.LayoutParams)
constructor(source: ViewGroup.MarginLayoutParams)


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.

Parameters

width

the width, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels

height

the height, either MATCH_PARENT, WRAP_CONTENT or a fixed size in pixels