Most visited

Recently visited

R.attr

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()

Inherited methods

From class java.lang.Object

Fields

cardBackgroundColor

int cardBackgroundColor

Background color for CardView.

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

cardCornerRadius

int cardCornerRadius

Corner radius for CardView.

May 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), and mm (millimeters).

cardElevation

int cardElevation

Elevation for CardView.

May 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), and mm (millimeters).

cardMaxElevation

int cardMaxElevation

Maximum Elevation for CardView.

May 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), and mm (millimeters).

cardPreventCornerOverlap

int cardPreventCornerOverlap

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

May be a boolean value, such as "true" or "false".

cardUseCompatPadding

int cardUseCompatPadding

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

May be a boolean value, such as "true" or "false".

contentPadding

int contentPadding

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

May 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), and mm (millimeters).

contentPaddingBottom

int contentPaddingBottom

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

May 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), and mm (millimeters).

contentPaddingLeft

int contentPaddingLeft

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

May 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), and mm (millimeters).

contentPaddingRight

int contentPaddingRight

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

May 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), and mm (millimeters).

contentPaddingTop

int contentPaddingTop

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

May 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), and mm (millimeters).

Public constructors

R.attr

R.attr ()

Hooray!