added in version 22.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

BaseCardView.LayoutParams

public static class BaseCardView.LayoutParams
extends FrameLayout.LayoutParams

java.lang.Object
   ↳ android.view.ViewGroup.LayoutParams
     ↳ android.view.ViewGroup.MarginLayoutParams
       ↳ android.widget.FrameLayout.LayoutParams
         ↳ android.support.v17.leanback.widget.BaseCardView.LayoutParams


Per-child layout information associated with BaseCardView.

Summary

Constants

int VIEW_TYPE_EXTRA

int VIEW_TYPE_INFO

int VIEW_TYPE_MAIN

Inherited constants

From class android.widget.FrameLayout.LayoutParams
From class android.view.ViewGroup.LayoutParams

Fields

public int viewType

Card component type for the view associated with these LayoutParams.

Inherited fields

From class android.widget.FrameLayout.LayoutParams
From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams

Public constructors

BaseCardView.LayoutParams(Context c, AttributeSet attrs)

BaseCardView.LayoutParams(int width, int height)

BaseCardView.LayoutParams(ViewGroup.LayoutParams p)

BaseCardView.LayoutParams(BaseCardView.LayoutParams source)

Copy constructor.

Inherited methods

From class android.view.ViewGroup.MarginLayoutParams
From class android.view.ViewGroup.LayoutParams
From class java.lang.Object

Constants

VIEW_TYPE_EXTRA

added in version 22.1.0
int VIEW_TYPE_EXTRA

Constant Value: 2 (0x00000002)

VIEW_TYPE_INFO

added in version 22.1.0
int VIEW_TYPE_INFO

Constant Value: 1 (0x00000001)

VIEW_TYPE_MAIN

added in version 22.1.0
int VIEW_TYPE_MAIN

Constant Value: 0 (0x00000000)

Fields

viewType

added in version 22.1.0
int viewType

Card component type for the view associated with these LayoutParams.

Public constructors

BaseCardView.LayoutParams

added in version 22.1.0
BaseCardView.LayoutParams (Context c, 
                AttributeSet attrs)

Parameters
c Context

attrs AttributeSet

BaseCardView.LayoutParams

added in version 22.1.0
BaseCardView.LayoutParams (int width, 
                int height)

Parameters
width int

height int

BaseCardView.LayoutParams

added in version 22.1.0
BaseCardView.LayoutParams (ViewGroup.LayoutParams p)

Parameters
p ViewGroup.LayoutParams

BaseCardView.LayoutParams

added in version 22.1.0
BaseCardView.LayoutParams (BaseCardView.LayoutParams source)

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

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