rightnao
c99cba6a76
[MaterialCardView] Add drawable states that MaterialCardView should still respect, even if duplicating its parent state
...
PiperOrigin-RevId: 800720830
2025-08-29 11:47:44 -07:00
rightnao
2f0935a706
[Card] Support StateListShapeAppearance in MaterialCardView
...
PiperOrigin-RevId: 785529211
2025-07-24 18:34:07 +00:00
pubiqq
23aca03255
[Internal] Remove pre-Lollipop checks
...
Resolves https://github.com/material-components/material-components-android/pull/4266
GIT_ORIGIN_REV_ID=1de7808e66dd6666c893217c76c7499afe2df6a3
PiperOrigin-RevId: 669688797
2024-09-03 13:31:29 +00:00
Material Design Team
31af945caa
[MaterialCardView] Support android:duplicateParentState.
...
MaterialCardView hasn't shown the pressed ripple effect if the parent view is
pressed and it has `android:duplicateParentState=true`, because its foreground
drawable is not a RippleDrawable. This CL fixes the issue.
PiperOrigin-RevId: 567117430
2023-09-21 14:46:51 +00:00
rightnao
e3b255b3a0
[Docs] Crosslink github docs in javadocs
...
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
rightnao
7d129eae21
[MaterialCardView] Add fade animation for checked icon drawable
...
PiperOrigin-RevId: 471663189
2022-09-01 17:23:43 -07:00
conradchen
283715d348
[Card] Fix checked icon gravity issues
...
Re-measures the card when checked icon gravity changes in order to move the icon position. Also corrects the padding adjustment logic for pre-lolipop or when compat paddings are being used.
PiperOrigin-RevId: 408876717
2021-11-10 16:11:35 -05:00
conradchen
bc56d5b43b
[M3][Card] Change checkedIconGravity values to enum
...
PiperOrigin-RevId: 408415041
2021-11-10 16:00:52 -05:00
Gabriele Mariotti
250d56de4b
[MaterialCardView] Added option to set the checkedIcon gravity
...
Resolves https://github.com/material-components/material-components-android/pull/1679
GIT_ORIGIN_REV_ID=a35c862071d83ced72c4d7257f2b7bc93101bfbb
PiperOrigin-RevId: 407662373
2021-11-10 15:35:03 -05:00
dsn5ft
9ae56ceedd
[Javadocs] Remove all broken attr links from Javadocs
...
PiperOrigin-RevId: 404246710
2021-10-20 19:06:18 +00:00
zmunm
4acc56dceb
[MaterialCardView] Add invalidate when stroke changed
...
Resolves https://github.com/material-components/material-components-android/pull/2173
GIT_ORIGIN_REV_ID=424c5862c22b41064ef473869bb0ca707bd53c13
PiperOrigin-RevId: 384921024
2021-07-15 12:35:51 -04:00
ymarian
b06446006c
[Card] Fix checked icon tint for API < 21, BitmapDrawables
...
Resolves https://github.com/material-components/material-components-android/issues/1993
PiperOrigin-RevId: 383754894
2021-07-09 15:29:15 -04:00
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
connieshi
1b0cfaeace
[MaterialCardView] Fixed NPE if android:onClick is defined in the layout
...
Resolves https://github.com/material-components/material-components-android/issues/1054
Resolves https://github.com/material-components/material-components-android/pull/1614
GIT_ORIGIN_REV_ID=b19044de3093f19313e362d378f5cc3b810c5727
PiperOrigin-RevId: 326486876
2020-08-13 16:51:44 -04:00
marianomartin
555356b03f
Internal cleanup
...
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
connieshi
d09ac03481
Prevent content from being clipped by MaterialCardView when a non-round rect is set as the shape.
...
Caution: content may extend outside shape.
PiperOrigin-RevId: 311135841
2020-05-12 19:29:22 -04:00
isabellekim
1cdd0428ed
Add public attributes to public.xml and add setter & getter for cardForegroundColor to Card.
...
PiperOrigin-RevId: 293675127
2020-02-07 10:34:25 -05:00
Andreas Rossbacher
db7fde2cd6
[CardView] Fix potential Proguard/Dexguard/R8(?) optimization problem
...
Resolves https://github.com/material-components/material-components-android/pull/790
GIT_ORIGIN_REV_ID=fddc631d7a7c010044ab66247bec85f0aba097aa
PiperOrigin-RevId: 282769919
2019-12-02 17:31:16 -05:00
connieshi
3a337c0110
Hardcode non-framework classname used to call AccessibilityNodeInfo#setClassName so it doesn't get obfuscated by Proguard.
...
PiperOrigin-RevId: 282618314
2019-12-02 17:28:30 -05:00
marianomartin
781e79f4b1
Disable MaterialCardView bitmap drawing
...
PiperOrigin-RevId: 281825046
2019-11-22 21:27:37 +00:00
marianomartin
115313c0c0
Expose a class for themeoverlay in style
...
This moves functionality from ThemeEnforcement into a stand alone class.
Resolves https://github.com/material-components/material-components-android/issues/665
PiperOrigin-RevId: 275481343
2019-10-21 10:24:19 -04:00
marianomartin
0f8fa7e6c9
Remove content layout from card view
...
Due to numerous issues with padding, measure, and crashes with layout bindings. We decided to remove the inner layout.
PiperOrigin-RevId: 271495029
2019-09-27 14:05:20 -04:00
connieshi
b6885518a0
Use CardView instead of MaterialCardView as the class name to so Talkback recognizes the item type.
...
PiperOrigin-RevId: 269333691
2019-09-18 14:15:19 -04:00
marianomartin
215a839598
Internal cleanup
...
PiperOrigin-RevId: 267504117
2019-09-12 13:48:16 -04:00
cketcham
9dc259119e
Add @NonNull and @Nullable annotations
...
PiperOrigin-RevId: 264899197
2019-08-26 11:43:16 -04:00
marianomartin
31d0e9ac4d
[MaterialCardView] Add (set|get)Progress
...
This allows to animate the shape of the card.
Using setProgress so that this works with MotionLayout as well.
PiperOrigin-RevId: 257241960
2019-07-10 13:43:58 -04:00
marianomartin
15f2a245e1
Implement Shapeable in MaterialCardView
...
PiperOrigin-RevId: 256181803
2019-07-03 14:10:09 -04:00
marianomartin
164bf0fabd
Internal cleanup
...
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -04:00
dniz
5df3bebd63
Update elevation overlays to be based absolute elevation, factoring in the elevation of all parent views
...
Will follow-up with TabLayout absolute elevation separately
Resolves https://github.com/material-components/material-components-android/issues/381
PiperOrigin-RevId: 255404830
2019-07-03 13:55:49 -04:00
marianomartin
a010a46015
[MaterialCardView] Talkback does not say whether a card is selected
...
PiperOrigin-RevId: 254763915
2019-06-24 17:28:23 -04:00
dniz
3fd054086c
Add demo for Drag-and-Drop of Material Cards in a List and clear ripple when drag starts
...
PiperOrigin-RevId: 242474750
2019-04-19 12:53:43 -04:00
marianomartin
8b277edc7c
[MaterialCardView] Change strokeColor to be a ColorStateList
...
PiperOrigin-RevId: 238241769
2019-03-22 16:05:58 -04:00
isabellekim
6f965da141
Move content padding to be inside the intermediate FrameLayout in MaterialCardView. This allows clipping to the inside of the stroke as the FrameLayout bounds and the stroke bounds will be the same.
...
PiperOrigin-RevId: 236646347
2019-03-08 09:55:07 -05:00
gauthams
1deb4cc1db
Add state_checkable to MaterialCardView drawable state, if isCheckable()
...
PiperOrigin-RevId: 236116032
2019-03-08 09:46:49 -05:00
marianomartin
7087f8e5d7
Update MaterialCardView javadocs
...
PiperOrigin-RevId: 235026790
2019-02-24 14:29:55 -05:00
marianomartin
33e408d67e
Card elevation changes
...
PiperOrigin-RevId: 231993329
2019-02-11 11:09:05 -08:00
marianomartin
20691fec78
Remove long click toggle behavior from MaterialCardView
...
PiperOrigin-RevId: 230617290
2019-01-25 13:58:17 -05:00
marianomartin
74b2ddfd6e
Add checked icon tinting for MaterialCardView
...
PiperOrigin-RevId: 229429322
2019-01-18 14:15:16 -05:00
marianomartin
0a5d7e2b57
Add workaround to force ripple to redraw on P
...
PiperOrigin-RevId: 229370645
2019-01-18 14:14:31 -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
Material Design Team
56c22ed0f7
Migrate Cardview android support libraries to androidx.
...
PiperOrigin-RevId: 225886550
2018-12-21 11:13:36 -05:00
cketcham
dc72aaeed4
Migrate Gradle build and sources to androidx
...
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -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
7e3cd20408
Stop setting minimum height and width on MaterialCardView's contentLayout. Since it's added with MATCH_PARENT, it will adjust according to MaterialCardView's minimum height and width, which will match CardView's behavior.
...
PiperOrigin-RevId: 221323749
2018-11-16 11:48:15 -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