27 Commits

Author SHA1 Message Date
hunterstich
1867bb01e0 [Chip] Fixed chip group forcing importantForAccessibility=yes
Resolves https://github.com/material-components/material-components-android/issues/4946

PiperOrigin-RevId: 813732033
2025-10-07 19:51:06 +00:00
pubiqq
510881a469 [Internal] Stop using deprecated androidx.core.view.* methods
Resolves https://github.com/material-components/material-components-android/pull/4117

GIT_ORIGIN_REV_ID=dd157e8360c2511810496693cec1616fce578655
PiperOrigin-RevId: 632284856
2024-05-13 17:37:38 +00:00
rightnao
e3b255b3a0 [Docs] Crosslink github docs in javadocs
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
pfthomas
9b1a74b95e [ChipGroup][a11y] Fix announced Chip count and index
PiperOrigin-RevId: 459759081
2022-07-08 13:27:42 -07: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
Material Design Team
a487c89185 Internal change
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
dsn5ft
9ae56ceedd [Javadocs] Remove all broken attr links from Javadocs
PiperOrigin-RevId: 404246710
2021-10-20 19:06:18 +00: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
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
555356b03f Internal cleanup
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -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
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
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
marianomartin
573efa4b2f Add selection required option to ChipGroup
Resolves https://github.com/material-components/material-components-android/issues/651

PiperOrigin-RevId: 281274404
2019-11-19 10:31:43 -08:00
Mattia Pagini
a05b3a5c79 [ChipGroup] Added a method to get the selected ids
Resolves https://github.com/material-components/material-components-android/pull/667

GIT_ORIGIN_REV_ID=185fec8087c2a9c7186a2565330c797dd994dfb8
PiperOrigin-RevId: 274013304
2019-10-10 15:54:45 -04:00
afohrman
f6a67eb9f6 Fix issues with javadocs.
PiperOrigin-RevId: 269825611
2019-09-18 14:24:31 -04:00
cketcham
3021dc0ac8 Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 264856214
2019-08-26 11:41:00 -04:00
connieshi
6589e54a47 Publicly expose a hidden setter (ChipGroup#setSingleLine) inherited from a restricted parent class (FlowLayout).
PiperOrigin-RevId: 257046797
2019-07-09 12:59:59 -04:00
marianomartin
164bf0fabd Internal cleanup
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -04:00
connieshi
6c70169e8d Update chipgroup spacing attribute documentation to clarify that it doesn't apply to hidden chips.
PiperOrigin-RevId: 226498090
2018-12-21 16:29:20 -05:00
cketcham
dc72aaeed4 Migrate Gradle build and sources to androidx
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
connieshi
36c01edeb2 Switch ChipGroup to inherit from FlowLayout.
PiperOrigin-RevId: 204296714
2018-07-12 16:18:34 -04:00
cketcham
e22213ba58 Automated g4 rollback of changelist 204005581
PiperOrigin-RevId: 204142484
2018-07-11 15:22:03 -04:00
connieshi
602a9b63a4 Switch ChipGroup to inherit from FlowLayout.
PiperOrigin-RevId: 204005581
2018-07-11 15:17:56 -04:00
connieshi
52d2a1de2e Add a ChipGroup.LayoutParams static class that extends from FlexBoxLayout.LayoutParams. Provide the appropriate pass-through constructors for this new class. Override generateLayoutParams/checkLayoutParams/generateDefaultLayoutParams in ChipGroup to check for and return instances of the new ChipGroup.LayoutParams class.
PiperOrigin-RevId: 197933724
2018-05-30 17:32:24 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00