33 Commits

Author SHA1 Message Date
Rafael Wolf de Goes
b39845a452 Automated g4 rollback of changelist 314782767
PiperOrigin-RevId: 316867631
2020-06-17 18:40:38 -07: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
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
isabellekim
309d71860f Respect android:background attribute for MaterialButton.
PiperOrigin-RevId: 303732939
2020-03-30 15:52:26 -04:00
isabellekim
b5f4c788c6 Remove android:background from default MaterialButton styles in preparation for changing MaterialButton to read the android:background attribute.
PiperOrigin-RevId: 297875537
2020-02-28 15:10:26 -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
ldjesper
910c940717 Disable MaterialDatePicker ok/confirm button when the selection is not valid
PiperOrigin-RevId: 262573417
2019-08-16 15:49:56 -04:00
dniz
52c1a4d50d Add materialButtonOutlinedStyle and materialButtonToggleGroupStyle to public.xml
Resolves https://github.com/material-components/material-components-android/pull/453

PiperOrigin-RevId: 259959541
2019-07-25 13:14:06 -04:00
isabellekim
36b760d220 Change ripples on MaterialButton to use the alphas provided in the ColorStateList.
RippleDrawable on different API levels will modulate the alphas differently
for the pressed / focused / hovered states. Therefore, in order to get the
desired alphas for pressed / focused / hovered states, we are using the
mtrl_(low|high)_ripple_(pressed|focused|hovered|default)_alpha values which have
been defined to account for the different implementations of RippleDrawable.

This will allow developers to specify different colors for focused vs. pressed if desired.

PiperOrigin-RevId: 255306749
2019-07-03 13:50:29 -04:00
gauthams
71048025ef Update MaterialButton documentation to clarify usage of '.Icon' styles
PiperOrigin-RevId: 245317272
2019-04-29 15:52:46 -07:00
gauthams
c42eb1e239 Add support for end-aligned iconGravity in MaterialButton
PiperOrigin-RevId: 244431572
2019-04-19 22:07:04 -04:00
marianomartin
77ac869283 Add single selection attr to resources package
PiperOrigin-RevId: 236851563
2019-03-08 09:58:19 -05:00
gauthams
cad9d7d5f5 Add MaterialButtonToggleGroup
PiperOrigin-RevId: 236745008
2019-03-08 09:56:58 -05:00
gauthams
bc33a8042f Update MaterialButton checked colors
PiperOrigin-RevId: 235987525
2019-03-08 09:42:40 -05:00
gauthams
441877f7cc Add checked state to MaterialButton
PiperOrigin-RevId: 234214200
2019-02-24 14:19:05 -05:00
marianomartin
991927fd8f Add an attribute for materialButtonOutlinedStyle
It's a common use case to want to mix up buttons with outlined buttons and an attribute facilitates reusing layouts with different themes.

PiperOrigin-RevId: 234189427
2019-02-24 14:16:47 -05:00
gauthams
75db2150a8 Add shadow to MaterialButton below API 21
PiperOrigin-RevId: 232737347
2019-02-11 11:17:08 -08:00
ldjesper
e22d745ec0 materialAlertDialogTheme changes to spec (padding, text opacity, scrim color, divider color)
PiperOrigin-RevId: 231757787
2019-02-11 11:06:48 -08:00
gauthams
a48a9af060 Shape system changes for MaterialButton
PiperOrigin-RevId: 225050954
2018-12-12 16:22:46 -05:00
dniz
d03f490740 Snackbar update label text color to new color system
PiperOrigin-RevId: 218861625
2018-10-28 21:42:33 -04:00
ldjesper
ba7103aad3 Ellipsize long buttons to force one line by default.
PiperOrigin-RevId: 216403566
2018-10-11 18:16:01 -04:00
gauthams
15bf27d7cd Update MaterialButton to use new color attributes
PiperOrigin-RevId: 209617286
2018-08-28 16:31:53 -04:00
gauthams
58df7b8baa Fixing MaterialButton padding API surface
PiperOrigin-RevId: 202584064
2018-07-02 09:49:33 -04:00
marianomartin
dc36a0999c Allow icon to be centered with text in MaterialButton
PiperOrigin-RevId: 199138977
2018-06-20 17:22:24 -04:00
gauthams
670787be83 Update button to use textappearance theme attributes, and enforce textappearance check
PiperOrigin-RevId: 198609334
2018-05-30 17:45:15 -04:00
marianomartin
9d1d6e7bae Add setIconSize to material button
Adding functionality to be able to scale the icon

PiperOrigin-RevId: 196698054
2018-05-16 11:44:12 -04:00
Material Design Team
da42189a47 Added Outlined buttons to style and to MDC Catalog Buttons example.
PiperOrigin-RevId: 195479574
2018-05-07 13:37:36 -04:00
gauthams
4c17ed1901 Refactor "additionalPadding(Left/Right)ForIcon" attribute name to "additionalPadding(Start/End)ForIcon"
PiperOrigin-RevId: 194308498
2018-04-30 12:02:03 -04:00
gauthams
d8464c9167 Automated g4 rollback of changelist 193414729
PiperOrigin-RevId: 193439529
2018-04-30 11:33:22 -04:00
gauthams
459f9ff88c Automated g4 rollback of changelist 192788678
PiperOrigin-RevId: 193414729
2018-04-30 11:33:01 -04:00
dniz
9ca33544ac Update package name to com.google.android.material
PiperOrigin-RevId: 193236235
2018-04-30 11:24:23 -04:00