public
static
final
class
R.attr
extends Object
java.lang.Object | |
↳ | android.support.v7.cardview.R.attr |
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
|
int cardBackgroundColor
Background color for CardView.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
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).
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).
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).
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
".
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
".
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).
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).
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).
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).
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).
R.attr ()