208 Commits

Author SHA1 Message Date
pubiqq
10edcd11d5 [ChipDrawable] Support setting text color programmatically.
Resolves https://github.com/material-components/material-components-android/pull/2526

GIT_ORIGIN_REV_ID=d1f47b5aa0b823ae0915d4c7ae85417e7d0eddd5
PiperOrigin-RevId: 424632069
2022-01-27 09:53:18 -08:00
jeremymuhia
90787bf0e0 [TextAppearance] fix drawables not applying system level bold
PiperOrigin-RevId: 421066050
2022-01-12 11:21:15 -05:00
Material Design Team
cfc00aa5a3 Update android core class definitions across material
PiperOrigin-RevId: 414839941
2021-12-08 14:56:25 +00:00
Material Design Team
a487c89185 Internal change
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
conradchen
cc18f3f7e8 [M3][Chip] Add missing attributes to M3 chip styles
PiperOrigin-RevId: 409239837
2021-11-16 12:31:56 -05:00
pfthomas
c6be59ce8b [Chip][a11y] Fix system level bold not applied
PiperOrigin-RevId: 408609073
2021-11-10 16:02:22 -05:00
conradchen
e9ec82f5e9 [M3][Chip] Add input chip elevated styles to public
PiperOrigin-RevId: 407408090
2021-11-04 10:54:56 -04:00
conradchen
8ed0ac9fd3 [M3][Chip] Update M3 chip styles with spec
Adds elevation to selected & hovered state. Adds leading icon tint.

PiperOrigin-RevId: 407397700
2021-11-04 10:53:39 -04:00
conradchen
abb9d5bf99 [M3][Chip] Update chip styles with spec
PiperOrigin-RevId: 404852054
2021-10-25 16:06:43 +00:00
dsn5ft
9ae56ceedd [Javadocs] Remove all broken attr links from Javadocs
PiperOrigin-RevId: 404246710
2021-10-20 19:06:18 +00:00
pekingme
9de9319b1e [Resources] Added styles in res-public.
PiperOrigin-RevId: 403451624
2021-10-18 15:31:13 -04:00
conradchen
37bb2efb38 [Chip] Rollback workaround of ExploreByTouchHelper bug
The original bug has been fixed.

Resolves https://github.com/material-components/material-components-android/issues/2352

PiperOrigin-RevId: 397813859
2021-09-21 08:07:41 -07:00
serniebanders
204eceb978 [M3][Docs] Update chip documentation to describe M3 themes/styles.
Additionally exposes M3 chip styles in res-public

PiperOrigin-RevId: 395730438
2021-09-15 12:26:01 -07:00
pfthomas
f80b866029 [M3][Chip] Remove duplicate line
PiperOrigin-RevId: 394004910
2021-08-31 12:00:56 -04:00
serniebanders
7f597a711c [M3][Chip] Create M3 styles
PiperOrigin-RevId: 393154962
2021-08-26 15:10:34 -04:00
conradchen
7085319b35 [Chip] Fix touching cannot put focus on chips with Talkback
We disabled ChipTouchHelper on purpose to workaround a Talkback issue but we didn't stop forwarding touch/hover events to ChipTouchHelper, which cause some Talkback logic work incorrectly on certain API levels.

Adds a state variable to avoid using ChipTouchHelper when it's not registered as accessibility delegate to solve the issue.

Resolves https://github.com/material-components/material-components-android/issues/2155

PiperOrigin-RevId: 383911836
2021-07-12 19:41:11 +00:00
conradchen
31ca1106ab [Chip] Report a11y class name as RadioButton in single selection mode
Also consolidates the logic of reporting a11y class name.

Resolves https://github.com/material-components/material-components-android/issues/2154

PiperOrigin-RevId: 383849367
2021-07-12 19:38:32 +00:00
conradchen
c08a07d7e8 [Chip] Fix icon tint states are not updated after setting new icon
A drawable's tint will affect the result of drawable.isStateful().
After updating a new icon drawable, we should set tint first before
we check and update its state.

Resolves https://github.com/material-components/material-components-android/issues/2118

PiperOrigin-RevId: 381262641
2021-06-28 12:49:17 -07:00
conradchen
7adfd93d80 [TooltipDrawable] Adding android:textColor support
PiperOrigin-RevId: 374887222
2021-05-20 14:03:30 -07:00
haodong
0d0c90b9ef Updated string translations.
PiperOrigin-RevId: 354978993
2021-02-01 11:03:44 -08:00
isabellekim
738cccb433 [Chip] Update javadocs @see methods to match the actual methods.
PiperOrigin-RevId: 344160354
2020-11-25 10:28:33 -05:00
connieshi
93f4f161cd [Chip] If a close icon is purely decorative (e.g. no closeIconClickListener is specified), the close icon should not intercept the click and instead let the superclass manages the touch event for the overall chip.
PiperOrigin-RevId: 338260731
2020-10-21 15:51:08 -07:00
isabellekim
1cc34a09c7 [TimePicker] Update ripple color on the mode button for time picker to be based on the content color.
PiperOrigin-RevId: 337103634
2020-10-15 13:26:19 -07:00
connieshi
6951bd5179 [Chip] Support elevation overlay.
Resolves https://github.com/material-components/material-components-android/issues/1749

PiperOrigin-RevId: 336930100
2020-10-15 13:21:17 -07:00
dniz
0845dfe0d1 [Chip] Added string translations for i18n / l10n
PiperOrigin-RevId: 334815304
2020-10-01 11:31:02 -04:00
Gabriele Mariotti
6d75b92c0a [Chip] Fixed wrong behavior when checked chip with id = NO_ID is added to ChipGroup
Resolves https://github.com/material-components/material-components-android/pull/1648

Resolves https://github.com/material-components/material-components-android/issues/1178

Resolves https://github.com/material-components/material-components-android/issues/1647

GIT_ORIGIN_REV_ID=155b8ca0218835beb02b4e3a745a1026c835a835
PiperOrigin-RevId: 328373122
2020-08-26 09:47:33 -04:00
dniz
b0240d9a77 [Resources] Fixed the types of some public attrs
Resolves https://github.com/material-components/material-components-android/issues/1560

PiperOrigin-RevId: 325010287
2020-08-05 10:59:36 -04:00
Mattia
6daf233982 [ChipGroup] Generate a valid ID for Chip view on any API level
Resolves https://github.com/material-components/material-components-android/issues/1493
Resolves https://github.com/material-components/material-components-android/pull/1515

GIT_ORIGIN_REV_ID=6b39b596c6d79b09ffb76c791cdda35403081578
PiperOrigin-RevId: 323385654
2020-07-27 13:23:17 -04:00
marianomartin
049ad022a6 Delete components build.gradle files
PiperOrigin-RevId: 320944144
2020-07-15 09:38:31 -07:00
marianomartin
e5f7951b01 [Chip] Support setting text size without changing TextAppearance
PiperOrigin-RevId: 320083914
2020-07-08 15:00:37 -04:00
connieshi
8544f7acc2 [Chip] Include font padding.
Resolves https://github.com/material-components/material-components-android/issues/1424

PiperOrigin-RevId: 318817230
2020-06-29 16:17:12 -04:00
marianomartin
555356b03f Internal cleanup
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
Material Design Team
342ea9ad25 Internal cleanup
PiperOrigin-RevId: 317147378
2020-06-19 13:42:35 -04:00
Material Design Team
76ffe35fef Cleanup
PiperOrigin-RevId: 313865830
2020-06-01 16:52:06 -04:00
Rafael
45f59032c8 [Chip]Fix chip icon with different width and height
Resolves https://github.com/material-components/material-components-android/pull/1242

GIT_ORIGIN_REV_ID=2c843f543245ac17327cbc55566eb3f8098d9082
Co-authored-by: wcshi <38438920+wcshi@github.com>
PiperOrigin-RevId: 309745804
2020-05-04 11:42:31 -04:00
connieshi
0687ca80b0 Fix javadocs errors in Chip and ChipDrawable.
PiperOrigin-RevId: 300592847
2020-03-13 11:11:29 -04:00
isabellekim
358f9a7a3d Add @deprecated to javadocs for methods and classes marked @Deprecated.
PiperOrigin-RevId: 300567533
2020-03-13 11:07:17 -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
connieshi
ded0c3ff61 Initialize chipCornerRadius to -1 instead of 0 so it would not ignore a user who sets the corner radius to 0.
Resolves https://github.com/material-components/material-components-android/issues/1058

PiperOrigin-RevId: 297422651
2020-02-27 15:49:57 -05:00
isabellekim
5834d44a85 Update Chip close icon tint to have sufficient contrast.
PiperOrigin-RevId: 296985379
2020-02-24 18:34:21 -05:00
connieshi
def1b55632 Add explanation for why ?attr/chipSurfaceColor is not exposed publicly.
PiperOrigin-RevId: 293869990
2020-02-10 09:58:23 -05:00
isabellekim
1f9de68025 [All] Add support for materialThemeOverlay
Resolves https://github.com/material-components/material-components-android/pull/948

GIT_ORIGIN_REV_ID=5a8bb35a56c1b813df47d964de8482a26e0da66d
PiperOrigin-RevId: 293839172
2020-02-10 09:55:19 -05:00
connieshi
625a5d6da1 Add private attributes that should be public to public.xml.
PiperOrigin-RevId: 293279871
2020-02-05 17:29:07 -05:00
marianomartin
401b99e099 [Chip] Double emission on check state change when selectionRequired is used
Resolves https://github.com/material-components/material-components-android/issues/952

PiperOrigin-RevId: 291922419
2020-01-28 16:11:38 -05:00
Material Design Team
253cdc2114 Add CollectionInfos and CollectionItemInfos to ChipGroup and Chip for accessibility.
PiperOrigin-RevId: 288944549
2020-01-10 09:05:36 -08:00
Material Design Team
ba8e18ea62 Fix RTL padding issue on Chips.
PiperOrigin-RevId: 288737367
2020-01-08 12:11:28 -08:00
dniz
d72f3bc7d0 Remove log line from Chip
PiperOrigin-RevId: 286572627
2019-12-21 08:48:40 -05:00
connieshi
a3204758f9 Fix chip text mis-alignment when its width is less than the minimum recommended touch target width.
Resolves https://github.com/material-components/material-components-android/issues/800

PiperOrigin-RevId: 286421752
2019-12-19 15:46:43 -05:00
connieshi
2a9c3f3ad1 Automated g4 rollback of changelist 283714901
PiperOrigin-RevId: 283801062
2019-12-05 14:45:24 -05:00
connieshi
415628f1cd Automated g4 rollback of changelist 283621202
PiperOrigin-RevId: 283714901
2019-12-05 14:37:46 -05:00