public
static
final
class
R.styleable
extends Object
java.lang.Object | |
↳ | android.support.v7.cardview.R.styleable |
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 " |
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 " |
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
|
int[] CardView
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. |
| |
|
See also:
CardView_cardBackgroundColor
CardView_cardCornerRadius
CardView_cardElevation
CardView_cardMaxElevation
CardView_cardPreventCornerOverlap
CardView_cardUseCompatPadding
CardView_contentPadding
CardView_contentPaddingBottom
CardView_contentPaddingLeft
CardView_contentPaddingRight
CardView_contentPaddingTop
CardView_android_minWidth
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).
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).
int CardView_cardBackgroundColor
Background color for CardView.
May be a color value, in the form of "#rgb
",
"#argb
", "#rrggbb
#aarrggbb".
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).
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).
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).
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
".
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
".
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).
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).
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).
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).
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).
R.styleable ()