Android APIs
public static final class

R.attr

extends Object
java.lang.Object
   ↳ android.support.v7.cardview.R.attr

Summary

Fields
public static int cardBackgroundColor Background color for CardView.
public static int cardCornerRadius Corner radius for CardView.
public static int cardElevation Elevation for CardView.
public static int cardMaxElevation Maximum Elevation for CardView.
public static int cardPreventCornerOverlap Add padding to CardView on v20 and before to prevent intersections between the Card content and rounded corners.
public static int cardUseCompatPadding Add padding in API v21+ as well to have the same measurements with previous versions.
public static int contentPadding Inner padding between the edges of the Card and children of the CardView.
public static int contentPaddingBottom Inner padding between the bottom edge of the Card and children of the CardView.
public static int contentPaddingLeft Inner padding between the left edge of the Card and children of the CardView.
public static int contentPaddingRight Inner padding between the right edge of the Card and children of the CardView.
public static int contentPaddingTop Inner padding between the top edge of the Card and children of the CardView.
Public Constructors
R.attr()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static int cardBackgroundColor

Background color for CardView.

Must be a color value, in the form of "#rgb", "#argb", "#rrggbb", or "#aarrggbb".

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int cardCornerRadius

Corner radius for CardView.

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int cardElevation

Elevation for CardView.

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int cardMaxElevation

Maximum Elevation for CardView.

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int cardPreventCornerOverlap

Add padding to CardView on v20 and before to prevent intersections between the Card content and rounded corners.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int cardUseCompatPadding

Add padding in API v21+ as well to have the same measurements with previous versions.

Must be a boolean value, either "true" or "false".

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int contentPadding

Inner padding between the edges of the Card and children of the CardView.

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int contentPaddingBottom

Inner padding between the bottom edge of the Card and children of the CardView.

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int contentPaddingLeft

Inner padding between the left edge of the Card and children of the CardView.

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int contentPaddingRight

Inner padding between the right edge of the Card and children of the CardView.

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

public static int contentPaddingTop

Inner padding between the top edge of the Card and children of the CardView.

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters).

This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.

Public Constructors

public R.attr ()