Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

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!)

<init>(width: Int, height: Int)

<init>(width: Int, height: Int, weight: Float)

Creates a new set of layout parameters with the specified width, height and weight.

Public constructors

<init>

LayoutParams(
    c: Context!,
    attrs: AttributeSet!)

<init>

LayoutParams(
    width: Int,
    height: Int)

<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!)