Material Design Team
60b0325b39
[Internal] Updated robolectric tests to run on minSdk 23
...
PiperOrigin-RevId: 774815542
2025-06-23 18:14:50 +00:00
pekingme
63bb499f98
[ButtonToggleGroup] Renamed insideCorner to innerCorner.
...
PiperOrigin-RevId: 639864920
2024-06-05 18:30:46 +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
pekingme
fb4761cc20
[ButtonToggleGroup] Added APIs to customize inside spacing and corner size between buttons.
...
PiperOrigin-RevId: 628469557
2024-04-29 19:03:54 +00:00
pfthomas
8656683639
[MaterialButtonToggleGroup][a11y] Update accessibility class name
...
PiperOrigin-RevId: 504557810
2023-01-26 17:09:27 +00:00
Blue
e8bfad5644
[MaterialButtonToggleGroup] handle setEnable childs
...
Resolves https://github.com/material-components/material-components-android/pull/2974
Resolves https://github.com/material-components/material-components-android/issues/2962
Resolves https://github.com/material-components/material-components-android/issues/1813
GIT_ORIGIN_REV_ID=e8f6b7cb1ca143f0ed1e2ec8d501164568dac2d9
PiperOrigin-RevId: 479403809
2022-10-11 14:00:17 +00:00
conradchen
fd40fea461
[Switch] Override switch width set by AppCompat to respect the drawable width
...
PiperOrigin-RevId: 449238028
2022-05-17 14:55:17 -04: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
dsn5ft
9cd794c72f
[Gradle] Remove unit test resources from main library source set and refactor the way test resources are configured/accessed
...
Resolves https://github.com/material-components/material-components-android/issues/1709
PiperOrigin-RevId: 449026115
2022-05-16 16:08:05 -04:00
conradchen
3db25be3b6
[ButtonGroup] Simplify MaterialButtonToggleGroup's checking logic
...
1. Consolidates single selected ID and multiple selected IDs to a single selected
ID set.
2. Separates View states and internal checked states so we can focus and enforce
policies much easier on only internal states.
PiperOrigin-RevId: 420087718
2022-01-06 15:44:19 -05:00
conradchen
a17af6ee04
Automated g4 rollback of changelist 418054400
...
PiperOrigin-RevId: 418062580
2021-12-28 11:44:12 -05:00
conradchen
747bcf25ff
[ButtonGroup] Simplify MaterialButtonTogglerGroup's checking logic
...
1. Consolidates single selected ID and multiple selected IDs to a single selected
ID set.
2. Separates View states and internal checked states so we can focus and enforce
policies much easier on only internal states.
Resolves https://github.com/material-components/material-components-android/issues/2263
PiperOrigin-RevId: 418054400
2021-12-28 08:55:31 -05:00
Material Design Team
a487c89185
Internal change
...
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
Material Design Team
a36304ad51
Explicitly annotate tests for LEGACY LooperMode.
...
PiperOrigin-RevId: 346869695
2020-12-11 14:44:32 -05:00
connieshi
15c048c0fa
[MaterialButtonToggleGroup] Do not update the checked state of any child buttons during onPressedChanged callback.
...
Resolves https://github.com/material-components/material-components-android/issues/1365
PiperOrigin-RevId: 314798502
2020-06-05 14:51:21 -04:00
connieshi
2d0e00980c
Dispatch button checked after the the button states have been updated and any internal corrections (e.g. singleSelection, selectionRequired) has been made.
...
Do not dispatch button checked if the button state does not actually change.
Resolves https://github.com/material-components/material-components-android/issues/1214
PiperOrigin-RevId: 310936891
2020-05-11 16:06:36 -04:00
Anders Kielsholm
42126efce8
[MaterialButtonToggleGroup] Single visible button corners
...
Resolves https://github.com/material-components/material-components-android/pull/1260
GIT_ORIGIN_REV_ID=a5c22101761a8727bb1bdcfad8c16596883f3d93
PiperOrigin-RevId: 309259039
2020-05-01 14:45:25 -04:00
marianomartin
e56b141dd5
[MaterialButtonToggleGroup] SelectionRequired attribute doesn`t enforce checkedButtonId to be a valid id (returns -1)
...
Resolves https://github.com/material-components/material-components-android/issues/956
PiperOrigin-RevId: 292334820
2020-01-31 11:10:08 -05:00
Material Design Team
4389a18128
Add CollectionInfos and CollectionItemInfos to MaterialButtonToggleGroup and MaterialButton for accessibility.
...
PiperOrigin-RevId: 286922716
2019-12-23 15:43:46 -05:00
connieshi
186884701d
Call themeApplicationContext inside createToggleGroupWithButtons because the order of @Before method calls is not deterministic.
...
PiperOrigin-RevId: 284244654
2019-12-10 07:18:55 -05:00
Zhaonian Luan
be8fb0f1ff
[MaterialButtonToggleGroup] Clean up
...
Resolves https://github.com/material-components/material-components-android/pull/796
Co-authored-by: wcshi <38438920+wcshi@users.noreply.github.com>
GIT_ORIGIN_REV_ID=77f2471c1fbd9b44a8df1d252a41d582ddcbee0f
PiperOrigin-RevId: 284044596
2019-12-08 14:18:17 -05:00