Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

LayoutParams

open class LayoutParams : LayoutParams
kotlin.Any
   ↳ android.view.ViewGroup.LayoutParams
   ↳ android.view.ViewGroup.MarginLayoutParams
   ↳ android.widget.FrameLayout.LayoutParams
   ↳ androidx.leanback.widget.BaseCardView.LayoutParams

Per-child layout information associated with BaseCardView.

Summary

Constants
static Int

static Int

static Int

Public constructors
<init>(c: Context!, attrs: AttributeSet!)

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

Copy constructor.

Properties
Int

Card component type for the view associated with these LayoutParams.

Constants

VIEW_TYPE_MAIN

static val VIEW_TYPE_MAIN: Int
Value: 0

VIEW_TYPE_INFO

static val VIEW_TYPE_INFO: Int
Value: 1

VIEW_TYPE_EXTRA

static val VIEW_TYPE_EXTRA: Int
Value: 2

Public constructors

<init>

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

<init>

LayoutParams(width: Int, height: Int)

<init>

LayoutParams(p: LayoutParams!)

<init>

LayoutParams(source: BaseCardView.LayoutParams!)

Copy constructor. Clones the width, height, and View Type of the source.

Parameters
source BaseCardView.LayoutParams!: The layout params to copy from.

Properties

viewType

var viewType: Int

Card component type for the view associated with these LayoutParams.