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 | |
|---|---|
LayoutParams(Context c, AttributeSet attrs)
|
|
LayoutParams(int width, int height)
|
|
LayoutParams(ViewGroup.LayoutParams p)
|
|
LayoutParams(BaseCardView.LayoutParams source)
Copy constructor. |
|
Inherited methods | |
|---|---|
Constants
VIEW_TYPE_EXTRA
public static final int VIEW_TYPE_EXTRA
Constant Value: 2 (0x00000002)
VIEW_TYPE_INFO
public static final int VIEW_TYPE_INFO
Constant Value: 1 (0x00000001)
VIEW_TYPE_MAIN
public static final int VIEW_TYPE_MAIN
Constant Value: 0 (0x00000000)
Fields
viewType
public int viewType
Card component type for the view associated with these LayoutParams.
Public constructors
LayoutParams
public LayoutParams (Context c, AttributeSet attrs)
| Parameters | |
|---|---|
c |
Context |
attrs |
AttributeSet |
LayoutParams
public LayoutParams (int width,
int height)
| Parameters | |
|---|---|
width |
int |
height |
int |
LayoutParams
public 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.
|