LayoutParams
open class LayoutParams : LayoutParams
kotlin.Any | ||||
↳ | android.view.ViewGroup.LayoutParams | |||
↳ | android.view.ViewGroup.MarginLayoutParams | |||
↳ | android.widget.LinearLayout.LayoutParams | |||
↳ | androidx.appcompat.widget.LinearLayoutCompat.LayoutParams |
Per-child layout information associated with ViewLinearLayout.
Summary
Public constructors | |
---|---|
<init>(c: Context!, attrs: AttributeSet!) |
|
Creates a new set of layout parameters with the specified width, height and weight. |
|
<init>(p: LayoutParams!) |
|
<init>(source: MarginLayoutParams!) |
Public constructors
<init>
LayoutParams(
c: Context!,
attrs: AttributeSet!)
<init>
LayoutParams(
width: Int,
height: Int,
weight: Float)
Creates a new set of layout parameters with the specified width, height and weight.
Parameters | |
---|---|
width |
Int: the width, either MATCH_PARENT , WRAP_CONTENT or a fixed size in pixels |
height |
Int: the height, either MATCH_PARENT , WRAP_CONTENT or a fixed size in pixels |
weight |
Float: the weight |
<init>
LayoutParams(p: LayoutParams!)
<init>
LayoutParams(source: MarginLayoutParams!)