23 Commits

Author SHA1 Message Date
Gabriele Mariotti
df0401bd29 [MaterialCardView] Added options to set custom checkedIcon size and margin
Resolves https://github.com/material-components/material-components-android/pull/1613

GIT_ORIGIN_REV_ID=ace8cb8b2e55806760e4d28214bd72afb46a6592
PiperOrigin-RevId: 330932167
2020-09-10 11:14:31 -04:00
Material Design Team
5213b46edd [Chip] Support setting checked icon's tint via xml attribute
PiperOrigin-RevId: 299429881
2020-03-09 10:45:57 -07:00
afohrman
ad017d9c09 Adjust card widget style.
PiperOrigin-RevId: 240638576
2019-04-05 15:14:55 -04:00
marianomartin
8449d0e7dc Change opacity of dragged state in cards
PiperOrigin-RevId: 234603183
2019-02-24 14:21:10 -05:00
marianomartin
7f45f74302 Combine default card style and checkable style.
PiperOrigin-RevId: 232472062
2019-02-11 11:14:50 -08:00
marianomartin
33e408d67e Card elevation changes
PiperOrigin-RevId: 231993329
2019-02-11 11:09:05 -08:00
marianomartin
74b2ddfd6e Add checked icon tinting for MaterialCardView
PiperOrigin-RevId: 229429322
2019-01-18 14:15:16 -05:00
marianomartin
8b7ec0c80e Add check drawable when card is selected.
PiperOrigin-RevId: 228715367
2019-01-10 17:17:34 -05:00
marianomartin
0c00762410 Resubmit card view ripple changes
PiperOrigin-RevId: 227909348
2019-01-10 16:30:51 -05:00
marianomartin
637e1599ca Automated g4 rollback of changelist 227719145
PiperOrigin-RevId: 227738476
2019-01-10 16:04:39 -05:00
marianomartin
4cbe3b1ad2 Support checkable in card view, add states demo.
Also added a demo showing the different states

PiperOrigin-RevId: 227719145
2019-01-10 16:02:59 -05:00
isabellekim
71891af8df Add shape appearance attributes to MaterialCardView. This maintains current behavior of stroke width / content padding.
When content can be clipped to the shape (round rect, Lollipop+), the content will be clipped to the interior of the stroke.

When preventCornerOverlap is true, if the content cannot be clipped, extra padding is added such that the entirety of the content is inside the stroke. Any contentPadding is additional to this padding. In order to keep centered content centered, the same amount of padding is added in each direction when preventCornerOverlap is true.

PiperOrigin-RevId: 223045615
2018-12-06 11:25:27 -05:00
isabellekim
ab48110097 Rolling back changes to support shape theming in MaterialCardView.
PiperOrigin-RevId: 222467563
2018-12-06 11:21:22 -05:00
isabellekim
46e18968d7 Add shape theme to MaterialCardView.
When content can be clipped to the shape (round rect, Lollipop+), the content will be clipped to the interior of the stroke.

When preventCornerOverlap is true, if the content cannot be clipped, extra padding is added such that the entirety of the content is inside the stroke. Any contentPadding is additional to this padding. In order to keep centered content centered, the same amount of padding is added in each direction when preventCornerOverlap is true.

PiperOrigin-RevId: 222456398
2018-12-06 11:20:48 -05:00
isabellekim
cea8fab635 Update card corner radius to 4dp to match spec.
PiperOrigin-RevId: 221346774
2018-11-16 11:49:05 -05:00
isabellekim
26109ae837 Update MaterialCardView to use MaterialShapeDrawable, changing stroke to respect extra padding that CardView adds for shadows.
Also adds clickable Card to the catalog

PiperOrigin-RevId: 220343650
2018-11-16 10:53:15 -05:00
marianomartin
027e10548f Fix color subsystem for MaterialCardView
PiperOrigin-RevId: 213649174
2018-09-28 16:10:13 -04:00
marianomartin
1ddb5f585a MaterialCardView update foreground drawables instead of creating new ones.
PiperOrigin-RevId: 213594729
2018-09-28 14:55:12 -04:00
Material Design Team
843b38a132 Automated g4 rollback of changelist 213442351
PiperOrigin-RevId: 213461630
2018-09-28 14:53:18 -04:00
marianomartin
731586fae6 Fix color subsystem for card view
PiperOrigin-RevId: 213442351
2018-09-28 14:52:58 -04:00
marianomartin
0c78325131 Automated g4 rollback of changelist 210712811
PiperOrigin-RevId: 210768027
2018-08-31 11:12:09 -04:00
marianomartin
3758c170c3 MaterialCardView update foreground drawables instead of creating new ones.
PiperOrigin-RevId: 210712811
2018-08-29 11:32:17 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00