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
Material Design Team
9dd1195ad7
[ButtonGroup] Reduce log tag string length
...
PiperOrigin-RevId: 470989485
2022-08-30 11:29:46 -04:00
dsn5ft
96fa85e216
[MaterialButtonToggleGroup] Removed getAccessibilityClassName() override since TalkBack doesn't recognize the class name, in favor of getting identified as a generic list container
...
PiperOrigin-RevId: 423814546
2022-01-24 15:47:55 -05: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
dsn5ft
9ae56ceedd
[Javadocs] Remove all broken attr links from Javadocs
...
PiperOrigin-RevId: 404246710
2021-10-20 19:06:18 +00:00
marianomartin
ffb2ad14ff
[MaterialButtonToggleGroup] Fixed issues with uncheck and check methods
...
This unifies the check handling logic so that calling check/uncheck is not treated differently than checking the buttons through touch input
Resolves https://github.com/material-components/material-components-android/issues/2133
PiperOrigin-RevId: 365077462
2021-03-25 14:50:26 -04:00
Aidan Pieper
70d659db60
[MaterialButtonToggleGroup] Fixed margins on MaterialButtonToggleGroup when changing orientations
...
Resolves https://github.com/material-components/material-components-android/pull/1521
Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
GIT_ORIGIN_REV_ID=c87c9ec3258c52fd3e6e2824b8dca2823b9500a5
PiperOrigin-RevId: 323781705
2020-07-29 10:38:35 -04:00
marianomartin
555356b03f
Internal cleanup
...
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04: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
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
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
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
marianomartin
a4b90321e3
Add selection required option to MaterialButtonToggleGroup
...
Setting selectionRequired = true. Makes it so that the last option on the Group cannot be unselected. Similar to how a Text Alignment toggle works.
PiperOrigin-RevId: 281366158
2019-11-20 14:36:15 -05:00
marianomartin
9fc1377755
[MaterialButtonToggleGroup] Fix corners after changing view visibility
...
People might want to set some of the buttons to GONE, this cl makes sure
the shape appearances remain coherent after doing so dynamically.
Resolves https://github.com/material-components/material-components-android/issues/693
PiperOrigin-RevId: 276508915
2019-11-01 13:28:40 -07:00
marianomartin
24ab59af6c
Support orientation VERTICAL in MaterialButtonToggleGroup
...
Resolves https://github.com/material-components/material-components-android/issues/476
PiperOrigin-RevId: 273514626
2019-10-08 10:35:08 -04:00
marianomartin
a405dd9664
Change MaterialButtonToggleGroup to extend LinearLayout
...
PiperOrigin-RevId: 272989081
2019-10-04 20:39:01 -04:00
ldjesper
294f12498d
Rename setCornerRadius to setAllCornerSizes
...
PiperOrigin-RevId: 272959729
2019-10-04 20:08:43 -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
167663ae45
Internal cleanup
...
PiperOrigin-RevId: 268698913
2019-09-12 14:29:01 -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
cketcham
1068e1029d
Add @NonNull and @Nullable annotations
...
PiperOrigin-RevId: 264899198
2019-08-26 14:40:54 -04:00
marianomartin
164bf0fabd
Internal cleanup
...
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -04:00
Jaeyoung
841d660439
Update MaterialButtonToggleGroup.java
...
fix wrong closing tag
Resolves https://github.com/material-components/material-components-android/pull/410
GIT_ORIGIN_REV_ID=2d55ec5261ba986863ac7b3a6cdd277a11d64784
PiperOrigin-RevId: 255404599
2019-07-03 13:52:59 -04:00
gauthams
cda68edcaf
Add uncheck(int id) API for unchecking single button to MaterialButtonToggleGroup
...
PiperOrigin-RevId: 252723596
2019-06-18 13:16:05 -04:00
gauthams
e869edd032
Document return value of getCheckedButtonIds() in MaterialButtonToggleGroup
...
PiperOrigin-RevId: 252702693
2019-06-18 12:05:19 -04:00
gauthams
64ad735c12
Add MaterialButtonToggleGroup docs
...
PiperOrigin-RevId: 243345601
2019-04-19 16:22:36 -04:00
gauthams
64d7de8020
Add checkedId tracking for singleSelection mode of MaterialButtonToggleGroup
...
PiperOrigin-RevId: 242558776
2019-04-19 13:00:04 -04:00
gauthams
cad9d7d5f5
Add MaterialButtonToggleGroup
...
PiperOrigin-RevId: 236745008
2019-03-08 09:56:58 -05:00