MaterialCardView

public class MaterialCardView
extends CardView

java.lang.Object
   ↳ CardView
     ↳ com.google.android.material.card.MaterialCardView


Provides a Material card.

This class supplies Material styles for the card in the constructor. The widget will display the correct default Material styles without the use of a style flag.

Stroke width can be set using the strokeWidth attribute. Set the stroke color using the strokeColor attribute. Without a strokeColor, the card will not render a stroked border, regardless of the strokeWidth value.

Summary

Public constructors

MaterialCardView(Context context)
MaterialCardView(Context context, AttributeSet attrs)
MaterialCardView(Context context, AttributeSet attrs, int defStyleAttr)

Inherited methods

From class java.lang.Object

Public constructors

MaterialCardView

MaterialCardView (Context context)

Parameters
context Context

MaterialCardView

MaterialCardView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

MaterialCardView

MaterialCardView (Context context, 
                AttributeSet attrs, 
                int defStyleAttr)

Parameters
context Context

attrs AttributeSet

defStyleAttr int