225 Commits

Author SHA1 Message Date
pekingme
2019bf90be [Tokens] Upgraded to version v0.147.
PiperOrigin-RevId: 492551875
2022-12-02 18:34:12 -05:00
pekingme
17e3581642 [Tokens] Upgraded to v0.145
PiperOrigin-RevId: 492291163
2022-12-02 15:11:37 +00:00
pekingme
b9963a5212 [Tokens][Android] Omitted more comments when configuration specifies no comments.
PiperOrigin-RevId: 492290497
2022-12-02 15:04:22 +00:00
pekingme
8ee6c00f73 [Tokens] Upgraded to v0.142
Added lStar CSLs for new neutral palettes in v31 and above.

PiperOrigin-RevId: 491693724
2022-11-30 17:31:11 -05:00
pekingme
12ef329276 [Tokens] Upgraded to v0.141
PiperOrigin-RevId: 490324728
2022-11-23 15:13:20 -05:00
pekingme
b2b546b205 [Tokens] Internal updates.
PiperOrigin-RevId: 490295053
2022-11-23 15:11:19 -05:00
raajkumars
cb65cc6e60 [Tokens][M3][Chip] Integrate Chip component tokens to Chip styles in M3.
PiperOrigin-RevId: 485965681
2022-11-07 15:50:44 +00:00
pfthomas
777ba0d55a [Chip] Fix API requirement
PiperOrigin-RevId: 461030541
2022-07-14 19:59:14 +00:00
pfthomas
9b1a74b95e [ChipGroup][a11y] Fix announced Chip count and index
PiperOrigin-RevId: 459759081
2022-07-08 13:27:42 -07:00
conradchen
413a047957 [ChipGroup] Fix ChipGroup.getCheckedChipIds() returns wrong state
In the Chip implementation, onCheckedChangeListener was called before onCheckedChangeListenerInternal. This causes an issue that in onCheckedChangeListener's callback, the checkable group's checked state is not updated yet, therefore ChipGroup.getCheckedChipIds() will return the outdated checked state.

Fixes this by overriding Chip.setOnCheckedChangeListener to get full control of the execution order between onCheckedChangeListener and onCheckedChangeListenerInternal.

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

PiperOrigin-RevId: 449100861
2022-05-17 11:04:03 -04:00
pfthomas
d4c2c95490 [Chip][a11y] Make multi-selection Chips announced as Buttons
PiperOrigin-RevId: 447993125
2022-05-11 14:58:44 -04:00
pekingme
3fc53ac51f [Shape][Chip] Migrate M3 chip styles to new shape system.
PiperOrigin-RevId: 447526976
2022-05-09 15:01:32 -04:00
conradchen
431e291b01 [Translation] Update string translations
PiperOrigin-RevId: 443191056
2022-04-20 17:19:02 -04:00
pubiqq
3ca41be8f0 [General] Fix typos
Resolves https://github.com/material-components/material-components-android/pull/2654

GIT_ORIGIN_REV_ID=b8f6728979875629f2c813ef90d2f671cf56b4eb
PiperOrigin-RevId: 442852630
2022-04-19 14:48:55 -04:00
conradchen
788866e448 [Chip] Fix chip layout not updated when programmatically setting text size
We didn't forward Chip.setTextSize() call properly to ChipDrawable.setTextSize(). Fixes this by properly overriding the method.

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

PiperOrigin-RevId: 442056225
2022-04-15 14:18:11 -04:00
pfthomas
a51d1dcb68 [MaterialTimePicker][a11y] Update accessibility className used for hour/minute Chips
PiperOrigin-RevId: 436207977
2022-03-21 18:53:24 +00:00
conradchen
f3c6430f94 [ChipGroup] Refactor chip group selection logic to a standalone class
This CL pulls out the checkable group logic to a standalone class, which can be shared by different UX components. It also makes chip groups support multiple selection better with introducing a new listener based on the multiple selection and deprecates the old listener which only supports single selection.

PiperOrigin-RevId: 427204476
2022-02-09 15:55:24 +00:00
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