marianomartin
455ba2557b
Internal cleanup
...
PiperOrigin-RevId: 249490219
2019-05-24 14:22:06 -04:00
marianomartin
90837ec485
Internal cleanup
...
PiperOrigin-RevId: 249243403
2019-05-21 12:15:07 -04:00
gauthams
dbbf2c6eec
Add additional info to Javadoc for MaterialButton's setShapeAppearanceModel method
...
PiperOrigin-RevId: 249091100
2019-05-21 12:12:52 -04:00
Material Design Team
32a28f5acf
Annotate arg MaterialButton.setIcon(@Nullable)
...
PiperOrigin-RevId: 245728195
2019-04-29 15:59:08 -07:00
gauthams
71048025ef
Update MaterialButton documentation to clarify usage of '.Icon' styles
...
PiperOrigin-RevId: 245317272
2019-04-29 15:52:46 -07:00
cketcham
e081f9d005
Use platform widget classes for the a11y class name
...
PiperOrigin-RevId: 245300502
2019-04-29 15:44:22 -07:00
gauthams
c42eb1e239
Add support for end-aligned iconGravity in MaterialButton
...
PiperOrigin-RevId: 244431572
2019-04-19 22:07:04 -04:00
gauthams
64ad735c12
Add MaterialButtonToggleGroup docs
...
PiperOrigin-RevId: 243345601
2019-04-19 16:22:36 -04:00
gauthams
d5bbc9cf43
Implement Shapeable interface in MaterialButton
...
PiperOrigin-RevId: 242559479
2019-04-19 13:00:59 -04:00
gauthams
64d7de8020
Add checkedId tracking for singleSelection mode of MaterialButtonToggleGroup
...
PiperOrigin-RevId: 242558776
2019-04-19 13:00:04 -04:00
gauthams
3f2d205344
Log a warning rather than an info when setting background on a MaterialButton.
...
PiperOrigin-RevId: 239880506
2019-03-26 17:29:07 -04:00
dniz
833258417d
Add @RequiresApi(VERSION_CODES.LOLLIPOP) to overriden setElevation() methods
...
that call super.setElevation()
PiperOrigin-RevId: 239171863
2019-03-22 16:50:21 -04:00
marianomartin
fd01672af5
Fix nullness in FAB
...
PiperOrigin-RevId: 238990635
2019-03-22 16:21:40 -04:00
gauthams
5848f1fa2d
Add elevation overlay support for MaterialButton
...
PiperOrigin-RevId: 238535050
2019-03-22 16:11:04 -04:00
Material Design Team
3bce1b6f46
Set MaterialButton's accessibility class name to match the platform Button widget so that a11y services can verbalize instances as Buttons. For instance, a button with content description "foo" should be verbalized as "foo Button"
...
PiperOrigin-RevId: 238032322
2019-03-22 16:05:13 -04:00
gauthams
c7d081a9e8
Use getEllipsizedWidth rather than getWidth when measuring text in MaterialButton
...
PiperOrigin-RevId: 237853613
2019-03-22 16:03:58 -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
e1c8b13064
Add package-private methods to set shape appearance on MaterialButton
...
PiperOrigin-RevId: 236355481
2019-03-08 09:50:08 -05:00
gauthams
bc33a8042f
Update MaterialButton checked colors
...
PiperOrigin-RevId: 235987525
2019-03-08 09:42:40 -05:00
gauthams
f354ff9df0
Add missing a11y info to MaterialButton
...
PiperOrigin-RevId: 235042404
2019-02-24 14:32:18 -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
3ad575dad1
Enable drawing surface-color stroke under regular stroke in MaterialButton
...
PiperOrigin-RevId: 233860616
2019-02-24 14:14:07 -05:00
gauthams
b7ff433981
Remove corner radius adjustment for MaterialButton
...
PiperOrigin-RevId: 233840694
2019-02-24 14:11:27 -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
354349d833
Expose background shape drawable in MaterialButtonHelper
...
PiperOrigin-RevId: 231321351
2019-02-01 12:38:48 -05:00
dniz
11df79f95c
Clean up Gradle build shorthands for appcompat/androidx libraries
...
PiperOrigin-RevId: 229369959
2019-01-18 14:13:26 -05:00
marianomartin
eeba1619e9
Resubmit fix for MaterialButton padding bug
...
PiperOrigin-RevId: 228723499
2019-01-10 17:18:36 -05:00
marianomartin
1220e66ce1
Automated g4 rollback of changelist 228351080
...
PiperOrigin-RevId: 228386136
2019-01-10 16:50:12 -05:00
marianomartin
218225008a
Update stroke instead of creating background again
...
PiperOrigin-RevId: 228351080
2019-01-10 16:49:24 -05:00
cketcham
dc72aaeed4
Migrate Gradle build and sources to androidx
...
PiperOrigin-RevId: 225551505
2018-12-21 11:07:45 -05:00
gauthams
a48a9af060
Shape system changes for MaterialButton
...
PiperOrigin-RevId: 225050954
2018-12-12 16:22:46 -05:00
isabellekim
14f41bd14d
Update MaterialButton to use a themed context in order to get attributes defined on the materialThemeOverlay.
...
PiperOrigin-RevId: 223218118
2018-12-06 11:33:25 -05:00
marianomartin
123b9f3e70
Material button icon gravity doesn't respond to text changes.
...
PiperOrigin-RevId: 221480745
2018-11-16 11:56:23 -05:00
connieshi
2e053c64d6
Fix typo.
...
PiperOrigin-RevId: 221259543
2018-11-16 11:29:32 -05:00
afohrman
7656db9b1e
Update TabLayout and MaterialButtonHelper documentation for LayerDrawable workaround.
...
PiperOrigin-RevId: 219127481
2018-11-01 16:03:25 -07:00
dniz
d03f490740
Snackbar update label text color to new color system
...
PiperOrigin-RevId: 218861625
2018-10-28 21:42:33 -04:00
melaniegoetz
71c2312c09
fix iconPadding when textStart is used as icon gravity
...
PiperOrigin-RevId: 218442537
2018-10-28 19:11:51 -04:00
marianomartin
9e36c150c0
Fix most javadocs errors
...
PiperOrigin-RevId: 216697274
2018-10-11 18:24:53 -04:00
Alex Lockwood
1b2bcfcde2
[MaterialButton] Use Layout#getWidth + Paint#measureText to get the right width of the text.
...
Resolves https://github.com/material-components/material-components-android/pull/211
PiperOrigin-RevId: 216421698
2018-10-11 18:16:49 -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
ba44d62af4
Update MaterialButton setRippleColor to properly convert it's ColorStateList before setting rippleColor
...
PiperOrigin-RevId: 212636260
2018-09-14 10:57:50 -04:00
gauthams
15bf27d7cd
Update MaterialButton to use new color attributes
...
PiperOrigin-RevId: 209617286
2018-08-28 16:31:53 -04:00
marianomartin
08c729d218
Fix icon tinting not working prep L
...
PiperOrigin-RevId: 209068353
2018-08-17 17:19:37 -04:00
gauthams
fb148f47a4
Use onDraw() instead of draw() in MaterialButton
...
PiperOrigin-RevId: 203012234
2018-07-09 14:59:09 -04:00
marianomartin
8aa6261493
Icon only buttons
...
PiperOrigin-RevId: 202660201
2018-07-02 09:51:34 -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