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
6c41f070e8
[Button] Support icon gravity with text alignments other than centered
...
Resolves https://github.com/material-components/material-components-android/issues/1371
PiperOrigin-RevId: 421605261
2022-01-18 12:02:02 -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
conradchen
672e7440f9
[M3][Dialog] Fix dialog paddings
...
We missed to include top/bottom insets of button styles into dialog action margin calculation. Also the paddings between titles and messages were not correct.
PiperOrigin-RevId: 417626927
2021-12-22 14:46:19 -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
pfthomas
3c9b45292d
[M3][Button] Add missing attributes to M3 button styles
...
PiperOrigin-RevId: 411585842
2021-11-29 17:29:47 +00:00
pfthomas
db64adb5fb
[M3][Button] Update elevation to match specs
...
PiperOrigin-RevId: 411148215
2021-11-29 16:59:33 +00:00
pfthomas
f028380fb2
[M3][Button] Update padding to match specs
...
PiperOrigin-RevId: 410823046
2021-11-29 16:48:32 +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
serniebanders
5844d3c134
[Button] Update icon state on Drawable state change.
...
Resolves: https://github.com/material-components/material-components-android/issues/2322
Follows pattern in View.drawableStateChanged() where drawable properties have states manually set.
PiperOrigin-RevId: 400754477
2021-10-05 09:04:56 -04:00
pfthomas
7729ad4dff
[M3][Button] Update button res-public
...
PiperOrigin-RevId: 395994178
2021-09-16 09:54:19 -07:00
conradchen
fae2d9120f
[M3][Snackbar] Remove redundant style settings
...
PiperOrigin-RevId: 395568908
2021-09-15 12:19:28 -07:00
conradchen
cf395d5729
[M3][Snackbar] Internal change
...
PiperOrigin-RevId: 395480037
2021-09-08 17:40:46 -04:00
Victor Cervantes
153fdee2f6
[MaterialButton] Material button lollipop shape fix
...
Resolves https://github.com/material-components/material-components-android/pull/2331
Resolves https://github.com/material-components/material-components-android/issues/1797
GIT_ORIGIN_REV_ID=cd176426395bf93f701c623c00947384aabf0706
PiperOrigin-RevId: 393405994
2021-08-27 17:29:19 -04:00
conradchen
2901012af5
[M3][DatePicker] Create M3 styles
...
PiperOrigin-RevId: 392982386
2021-08-26 14:43:23 -04:00
pfthomas
6bfa5842b9
[M3][Button] Create M3 styles
...
PiperOrigin-RevId: 392680177
2021-08-24 15:51:48 -04:00
conradchen
456f135627
[Button] Fix progress indicator is not shown when set as the icon
...
MaterialButton is using TextViewCompat.setCompoundDrawablesRelative() under the hood to implement setIcon() operation. TextViewCompat won't call its compound drawables' setVisible() method, on which we rely to start progress indicator drawables automatically.
Calls setVisible() explicitly to start progressing.
Also adds a demo to catalog.
Resolves https://github.com/material-components/material-components-android/issues/2095
PiperOrigin-RevId: 383483364
2021-07-08 15:58:13 +00:00
raajkumars
c5c7a74cef
[MaterialButton] Updated Material Button style to set the preferred maximum width to 320dp.
...
PiperOrigin-RevId: 371151853
2021-04-29 14:53:13 -04:00
raajkumars
95da70589c
[Catalog][Dialog] Removed full width button style and related dialog themes. Updated catalog dialog demo to showcase how to create dialogs with full width buttons.
...
PiperOrigin-RevId: 371146951
2021-04-29 14:52:19 -04:00
raajkumars
cd9e6204d8
[Dialog] Added support for full width buttons in dialogs.
...
PiperOrigin-RevId: 368853063
2021-04-16 18:21:25 -04:00
raajkumars
82333cf59d
Internal change
...
PiperOrigin-RevId: 368487188
2021-04-16 17:46:18 -04:00
raajkumars
7939c171df
[MaterialButton] Updated Material Button style to set the preferred maximum width to 320dp.
...
PiperOrigin-RevId: 368242141
2021-04-13 14:25:05 -04:00
Material Design Team
891d009058
Automated g4 rollback of changelist 367493781
...
PiperOrigin-RevId: 367522778
2021-04-08 21:29:13 -04:00
raajkumars
d61903470b
[MaterialButton] Updated Material Button style to set the preferred maximum width to 320dp.
...
PiperOrigin-RevId: 367493781
2021-04-08 20:45:57 -04: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
dniz
25bf03ea2a
[Docs] Remove broken @link from MaterialButton Javadoc
...
PiperOrigin-RevId: 356506184
2021-02-17 06:40:30 -08:00
hunterstich
fe58a4c81e
[Button] Updated custom background warning message to be more informative.
...
Resolves https://github.com/material-components/material-components-android/issues/1803
PiperOrigin-RevId: 337894750
2020-10-19 11:47:05 -07:00
Gabriele Mariotti
391d1f8ac5
[Snackbar] Changed dimens according to spec
...
Resolves https://github.com/material-components/material-components-android/pull/1711
Resolves https://github.com/material-components/material-components-android/issues/1721
GIT_ORIGIN_REV_ID=c039075b65833724b59ecdfde1ba70ed8ae5b8eb
Co-authored-by: pekingme <pekingme@gmail.com>
PiperOrigin-RevId: 333292492
2020-09-23 12:08:37 -07: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
f837cb76ab
[MaterialButton] Support setting vertical insets programatically
...
Resolves https://github.com/material-components/material-components-android/issues/526
PiperOrigin-RevId: 323450357
2020-07-28 10:28:38 -04:00
marianomartin
049ad022a6
Delete components build.gradle files
...
PiperOrigin-RevId: 320944144
2020-07-15 09:38:31 -07:00
marianomartin
555356b03f
Internal cleanup
...
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
Rafael Wolf de Goes
b39845a452
Automated g4 rollback of changelist 314782767
...
PiperOrigin-RevId: 316867631
2020-06-17 18:40:38 -07: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
Rafael Wolf de Goes
1171418c2b
Automated g4 rollback of changelist 314715132
...
PiperOrigin-RevId: 314782767
2020-06-05 14:49:43 -04:00
Rafael Wolf de Goes
a284edd719
[MaterialButton] Align icon on top
...
Resolves https://github.com/material-components/material-components-android/pull/1129
GIT_ORIGIN_REV_ID=8d663b1ca7f7bf62e1e5aa8cfc887a33bdbaf9a2
PiperOrigin-RevId: 314715132
2020-06-05 14:46:34 -04:00
Material Design Team
76ffe35fef
Cleanup
...
PiperOrigin-RevId: 313865830
2020-06-01 16:52:06 -04:00
Material Design Team
7cfc63ed35
Fix MaterialButton$SavedState ClassNotFoundException
...
PiperOrigin-RevId: 313512256
2020-05-29 15:51:33 -04:00
Rafael Wolf de Goes
6455e69ba7
Automated g4 rollback of changelist 312323243
...
PiperOrigin-RevId: 312420120
2020-05-20 17:03:52 -04:00
Rafael Wolf de Goes
cbc46e9c8d
[MaterialButton] Align icon on top
...
Resolves https://github.com/material-components/material-components-android/pull/1129
GIT_ORIGIN_REV_ID=8d663b1ca7f7bf62e1e5aa8cfc887a33bdbaf9a2
PiperOrigin-RevId: 312323243
2020-05-19 18:35:01 -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
Audrius Karosevicius
df84e91819
Automated g4 rollback of changelist 304625391
...
PiperOrigin-RevId: 305727309
2020-04-13 09:47:05 -07:00
Audrius Karosevicius
b7d46c4ba9
Automated g4 rollback of changelist 304610560
...
PiperOrigin-RevId: 304625391
2020-04-03 10:11:25 -07:00
Audrius Karosevicius
a6c0c4c53a
[MaterialButton] Save state
...
Resolves https://github.com/material-components/material-components-android/pull/1123
GIT_ORIGIN_REV_ID=56600d14c8bab0932f3b3569c94d548d1c1523f2
PiperOrigin-RevId: 304610560
2020-04-03 10:06:26 -07:00
isabellekim
309d71860f
Respect android:background attribute for MaterialButton.
...
PiperOrigin-RevId: 303732939
2020-03-30 15:52:26 -04:00