Android APIs
public static final class

R.styleable

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

Summary

Fields
public static final int[] CardView Attributes that can be used with a CardView.
public static int CardView_cardBackgroundColor

Background color for CardView.

public static int CardView_cardCornerRadius

Corner radius for CardView.

public static int CardView_cardElevation

Elevation for CardView.

public static int CardView_cardMaxElevation

Maximum Elevation for CardView.

public static int CardView_cardPreventCornerOverlap

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

public static int CardView_cardUseCompatPadding

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

public static int CardView_contentPadding

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

public static int CardView_contentPaddingBottom

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

public static int CardView_contentPaddingLeft

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

public static int CardView_contentPaddingRight

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

public static int CardView_contentPaddingTop

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

Public Constructors
R.styleable()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final int[] CardView

Attributes that can be used with a CardView.

Includes the following attributes:

AttributeDescription
android.support.v7.cardview:cardBackgroundColor Background color for CardView.
android.support.v7.cardview:cardCornerRadius Corner radius for CardView.
android.support.v7.cardview:cardElevation Elevation for CardView.
android.support.v7.cardview:cardMaxElevation Maximum Elevation for CardView.
android.support.v7.cardview:cardPreventCornerOverlap Add padding to CardView on v20 and before to prevent intersections between the Card content and rounded corners.
android.support.v7.cardview:cardUseCompatPadding Add padding in API v21+ as well to have the same measurements with previous versions.
android.support.v7.cardview:contentPadding Inner padding between the edges of the Card and children of the CardView.
android.support.v7.cardview:contentPaddingBottom Inner padding between the bottom edge of the Card and children of the CardView.
android.support.v7.cardview:contentPaddingLeft Inner padding between the left edge of the Card and children of the CardView.
android.support.v7.cardview:contentPaddingRight Inner padding between the right edge of the Card and children of the CardView.
android.support.v7.cardview:contentPaddingTop Inner padding between the top edge of the Card and children of the CardView.

public static int CardView_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.

This is a private symbol.

public static int CardView_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.

This is a private symbol.

public static int CardView_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.

This is a private symbol.

public static int CardView_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.

This is a private symbol.

public static int CardView_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.

This is a private symbol.

public static int CardView_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.

This is a private symbol.

public static int CardView_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.

This is a private symbol.

public static int CardView_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.

This is a private symbol.

public static int CardView_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.

This is a private symbol.

public static int CardView_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.

This is a private symbol.

public static int CardView_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.

This is a private symbol.

Public Constructors

public R.styleable ()