Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!
added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0

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
         ↳ androidx.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

Fields

public int viewType

Card component type for the view associated with these LayoutParams.

Inherited fields

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

Constants

VIEW_TYPE_EXTRA

added in version 1.0.0
public static final int VIEW_TYPE_EXTRA

Constant Value: 2 (0x00000002)

VIEW_TYPE_INFO

added in version 1.0.0
public static final int VIEW_TYPE_INFO

Constant Value: 1 (0x00000001)

VIEW_TYPE_MAIN

added in version 1.0.0
public static final int VIEW_TYPE_MAIN

Constant Value: 0 (0x00000000)

Fields

viewType

added in version 1.0.0
public int viewType

Card component type for the view associated with these LayoutParams.

Public constructors

BaseCardView.LayoutParams

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

Parameters
c Context

attrs AttributeSet

BaseCardView.LayoutParams

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

Parameters
width int

height int

BaseCardView.LayoutParams

added in version 1.0.0
public BaseCardView.LayoutParams (ViewGroup.LayoutParams p)

Parameters
p ViewGroup.LayoutParams

BaseCardView.LayoutParams

added in version 1.0.0
public 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.