16 Commits

Author SHA1 Message Date
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
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
isabellekim
b7c9432cfd Change MaterialCardView's stroke to use the card corner radius as the outer edge of the stroke instead of the center of the stroke. Adding a stroke will no longer change the shape of the card's corner.
PiperOrigin-RevId: 216522762
2018-10-11 18:17:53 -04:00
marianomartin
1ddb5f585a MaterialCardView update foreground drawables instead of creating new ones.
PiperOrigin-RevId: 213594729
2018-09-28 14:55:12 -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
marianomartin
4b73cb095e MaterialCardView API 16 ripple
PiperOrigin-RevId: 209182404
2018-08-17 17:30:29 -04:00
marianomartin
7020b37719 Set background transparent foreground on cardview
PiperOrigin-RevId: 209152296
2018-08-17 17:28:29 -04:00
marianomartin
92e34f6830 MaterialCardView keeps shrinking its inner content when changing its strokeWidth
PiperOrigin-RevId: 209028205
2018-08-17 17:18:31 -04:00
marianomartin
09673a5de7 MaterialCardView add ripple drawable to foreground
PiperOrigin-RevId: 208993686
2018-08-17 17:15:51 -04:00
marianomartin
3b33e5d40f Fix cardview failures, min height should account for content padding to not make the cardview bigger than expected.
PiperOrigin-RevId: 207005747
2018-08-02 18:07:34 -07:00
marianomartin
36cc52f9d8 Add FrameLayout to fix clipping issue with card view
PiperOrigin-RevId: 206958673
2018-08-02 18:06:32 -07:00
connieshi
2696568158 Remove default pixel dimension annotation.
PiperOrigin-RevId: 193945912
2018-04-30 11:37:55 -04:00
connieshi
4ceaaf5196 Update foreground of MaterialCardView whenever the radius is set.
PiperOrigin-RevId: 193927619
2018-04-30 11:37:36 -04:00
connieshi
255465bd0d Add getters and setters for strokeColor and strokeWidth in MaterialCardView.
PiperOrigin-RevId: 193338328
2018-04-30 11:29:08 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00