java.lang.Object | |
↳ | android.support.v7.cardview.R.styleable |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CardView | Attributes that can be used with a CardView. | ||||||||||
CardView_cardBackgroundColor |
Background color for CardView. |
||||||||||
CardView_cardCornerRadius |
Corner radius for CardView. |
||||||||||
CardView_cardElevation |
Elevation for CardView. |
||||||||||
CardView_cardMaxElevation |
Maximum Elevation for CardView. |
||||||||||
CardView_cardPreventCornerOverlap |
Add padding to CardView on v20 and before to prevent intersections between the Card content and rounded corners. |
||||||||||
CardView_cardUseCompatPadding |
Add padding in API v21+ as well to have the same measurements with previous versions. |
||||||||||
CardView_contentPadding |
Inner padding between the edges of the Card and children of the CardView. |
||||||||||
CardView_contentPaddingBottom |
Inner padding between the bottom edge of the Card and children of the CardView. |
||||||||||
CardView_contentPaddingLeft |
Inner padding between the left edge of the Card and children of the CardView. |
||||||||||
CardView_contentPaddingRight |
Inner padding between the right edge of the Card and children of the CardView. |
||||||||||
CardView_contentPaddingTop |
Inner padding between the top edge of the Card and children of the CardView. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Attributes that can be used with a CardView.
Includes the following attributes:
Attribute | Description |
---|---|
| Background color for CardView. |
| Corner radius for CardView. |
| Elevation for CardView. |
| Maximum Elevation for CardView. |
| Add padding to CardView on v20 and before to prevent intersections between the Card content and rounded corners. |
| Add padding in API v21+ as well to have the same measurements with previous versions. |
| Inner padding between the edges of the Card and children of the CardView. |
| Inner padding between the bottom edge of the Card and children of the CardView. |
| Inner padding between the left edge of the Card and children of the CardView. |
| Inner padding between the right edge of the Card and children of the CardView. |
| Inner padding between the top edge of the Card and children of the CardView. |
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.