Most visited

Recently visited

R.styleable

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_android_minHeight

Workaround to read user defined minimum height

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

public static int CardView_android_minWidth

Workaround to read user defined minimum width

May be a dimension value, which is a floating point number appended with a unit such as "14.5sp".

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

Inherited methods

From class java.lang.Object

Fields

CardView

int[] CardView

Attributes that can be used with a CardView.

Includes the following attributes:

AttributeDescription
android.support.v7.cardview:cardBackgroundColorBackground color for CardView.
android.support.v7.cardview:cardCornerRadiusCorner radius for CardView.
android.support.v7.cardview:cardElevationElevation for CardView.
android.support.v7.cardview:cardMaxElevationMaximum Elevation for CardView.
android.support.v7.cardview:cardPreventCornerOverlapAdd padding to CardView on v20 and before to prevent intersections between the Card content and rounded corners.
android.support.v7.cardview:cardUseCompatPaddingAdd padding in API v21+ as well to have the same measurements with previous versions.
android.support.v7.cardview:contentPaddingInner padding between the edges of the Card and children of the CardView.
android.support.v7.cardview:contentPaddingBottomInner padding between the bottom edge of the Card and children of the CardView.
android.support.v7.cardview:contentPaddingLeftInner padding between the left edge of the Card and children of the CardView.
android.support.v7.cardview:contentPaddingRightInner padding between the right edge of the Card and children of the CardView.
android.support.v7.cardview:contentPaddingTopInner padding between the top edge of the Card and children of the CardView.
android:minWidth
android:minHeight

See also:

CardView_android_minHeight

int CardView_android_minHeight

Workaround to read user defined minimum height

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

CardView_android_minWidth

int CardView_android_minWidth

Workaround to read user defined minimum width

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

CardView_cardBackgroundColor

int CardView_cardBackgroundColor

Background color for CardView.

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

CardView_cardCornerRadius

int CardView_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).

CardView_cardElevation

int CardView_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).

CardView_cardMaxElevation

int CardView_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).

CardView_cardPreventCornerOverlap

int CardView_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".

CardView_cardUseCompatPadding

int CardView_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".

CardView_contentPadding

int CardView_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).

CardView_contentPaddingBottom

int CardView_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).

CardView_contentPaddingLeft

int CardView_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).

CardView_contentPaddingRight

int CardView_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).

CardView_contentPaddingTop

int CardView_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.styleable

R.styleable ()

Hooray!