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
049ad022a6
Delete components build.gradle files
...
PiperOrigin-RevId: 320944144
2020-07-15 09:38:31 -07: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
marianomartin
4ad50666b2
[MaterialCardView] Checked icon is being squeezed with useCompatPadding
...
Resolves https://github.com/material-components/material-components-android/issues/795
PiperOrigin-RevId: 304272773
2020-04-03 09:22:16 -07: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
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
connieshi
12c0e435dc
Add reference to Github bug in todo for more context.
...
PiperOrigin-RevId: 283390765
2019-12-03 17:02:41 -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
ldjesper
294f12498d
Rename setCornerRadius to setAllCornerSizes
...
PiperOrigin-RevId: 272959729
2019-10-04 20:08:43 -04:00
marianomartin
6f10bd0606
Remove minimun dimens from cards inset drawables
...
Resolves https://github.com/material-components/material-components-android/issues/537
PiperOrigin-RevId: 272951547
2019-10-04 20:08:06 -04:00
cketcham
0547d2a06b
Uncouple CornerSize from CornerTreatment
...
This allows for more easily updating the CornerSize independently from the CornerTreatment and makes it possible to create different types of CornerSizes such as percentage based corners. However, this means corner sizes can be different depending on the bounds of the shape, so the bounds need to be provided. MaterialShapeDrawable has bounds and the ShapeAppearanceModel, so there are new convenience methods there which return the current corner size for the current bounds of the drawable.
PiperOrigin-RevId: 272908508
2019-10-04 15:23:16 -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
7bb525ff59
Update usages of ShapeAppearanceModel to use Builder pattern
...
PiperOrigin-RevId: 266144471
2019-08-29 15:39:51 -04:00
marianomartin
0d4515cb46
Internal cleanup
...
PiperOrigin-RevId: 265971745
2019-08-29 14:59:20 -04:00
cketcham
9dc259119e
Add @NonNull and @Nullable annotations
...
PiperOrigin-RevId: 264899197
2019-08-26 11:43:16 -04:00
dniz
0512f776c5
Remove sub-package AndroidManifest.xml files from lib directory
...
PiperOrigin-RevId: 258390736
2019-07-16 13:18:32 -04:00
dniz
68ddfee0ed
Remove Material's legacy androidx core_ui and core_utils dependencies in favor of more granular dependencies (coordinatorlayout, graphics, interpolator, customview)
...
PiperOrigin-RevId: 257452569
2019-07-10 15:17:12 -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
59a41855fb
[MaterialCardView] checked icon sometimes takes up the entire card
...
PiperOrigin-RevId: 256427401
2019-07-09 12:49:25 -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
marianomartin
b9147d4f2d
Remove some lint warnings from baseline
...
PiperOrigin-RevId: 253036361
2019-06-18 13:24:50 -04:00
marianomartin
5a5d311a36
Check more lint warnings, show warnings as errors.
...
PiperOrigin-RevId: 252822573
2019-06-18 13:20:15 -04:00
marianomartin
455ba2557b
Internal cleanup
...
PiperOrigin-RevId: 249490219
2019-05-24 14:22:06 -04:00
marianomartin
90837ec485
Internal cleanup
...
PiperOrigin-RevId: 249243403
2019-05-21 12:15:07 -04:00
marianomartin
213f93e842
set RippleColor doesnt update ripples in cards
...
PiperOrigin-RevId: 246391887
2019-05-03 11:02:47 -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
afohrman
ad017d9c09
Adjust card widget style.
...
PiperOrigin-RevId: 240638576
2019-04-05 15:14:55 -04:00
isabellekim
1a1788a0cf
Enable elevation overlays in MaterialCardView.
...
PiperOrigin-RevId: 238537749
2019-03-22 16:13:08 -04:00
marianomartin
8b277edc7c
[MaterialCardView] Change strokeColor to be a ColorStateList
...
PiperOrigin-RevId: 238241769
2019-03-22 16:05:58 -04:00
marianomartin
01874ad4e9
Change setElevation in MSD to use default offset
...
PiperOrigin-RevId: 236858323
2019-03-08 09:58:58 -05: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
68357af199
[MaterialCardView] Fix clipping logic to inset by stroke
...
PiperOrigin-RevId: 235979330
2019-03-08 09:40:38 -05:00
marianomartin
7087f8e5d7
Update MaterialCardView javadocs
...
PiperOrigin-RevId: 235026790
2019-02-24 14:29:55 -05:00
marianomartin
8449d0e7dc
Change opacity of dragged state in cards
...
PiperOrigin-RevId: 234603183
2019-02-24 14:21:10 -05:00
marianomartin
f59949a297
Fix card ripple bug
...
PiperOrigin-RevId: 233960735
2019-02-24 14:14:49 -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
isabellekim
c149a75edb
Stop adjusting content padding based on stroke width.
...
It is the responsibility of clients who want content to be inside the
stroke to set their content padding accordingly.
PiperOrigin-RevId: 231815048
2019-02-11 11:07:37 -08:00
isabellekim
6362e720ec
Use stroke width to determine whether a stroke should be drawn for
...
MaterialCardView.
PiperOrigin-RevId: 230713479
2019-01-25 14:01:46 -05:00