marianomartin
215bb6e294
Increase touch target of fab to min 48dp
...
PiperOrigin-RevId: 220311577
2018-11-16 10:51:48 -05:00
connieshi
c48d882994
Add javadoc to ChipDrawable's getters and setters.
...
PiperOrigin-RevId: 220301488
2018-11-16 10:51:06 -05:00
connieshi
a9b6225c08
Add build.gradle dependency on shapes to the Chip module.
...
PiperOrigin-RevId: 220168626
2018-11-16 10:40:37 -05:00
marianomartin
e94e2d35fe
Support shape theming in fab
...
PiperOrigin-RevId: 219812144
2018-11-16 10:38:43 -05:00
connieshi
f219705bb6
Add javadoc to chip getters and setters.
...
PiperOrigin-RevId: 219793479
2018-11-16 10:37:15 -05:00
afohrman
ff9dded7ba
Use typescale for TextInputLayout.
...
Update the type within TextInputLayout create color attributes for each element in order to ensure that the colors can be set outside of our typescale. The colors set in those new attributes are intended to be visual no-ops; the goal of this change is not to update the colors.
PiperOrigin-RevId: 219726813
2018-11-16 10:35:41 -05:00
isabellekim
2997b6995f
Add shadow compat support for cut corners and triangle edge treatments, updating ShapePath to add extra shadow arcs when needed:
...
+ Updates LineShadowOperation to call drawEdgeShadow with a horizontal edge
+ ShapePath has a start & end shadow angle and will add shadow arcs to fill in gaps between shadow operations
PiperOrigin-RevId: 219686107
2018-11-01 16:22:14 -07:00
isabellekim
b07fdf2459
Remove anti-aliasing from cornerShadowPaint (to allow corner shadows to line up with edge shadows along angles)
...
PiperOrigin-RevId: 219575570
2018-11-01 16:20:43 -07:00
leticiars
7eac68f306
Adding surface layer support to MDC text fields.
...
PiperOrigin-RevId: 219499276
2018-11-01 16:19:29 -07:00
cketcham
3d8e2b408c
Stop expanding the clip rect on versions of android that have native shadow support
...
PiperOrigin-RevId: 219478262
2018-11-01 16:17:19 -07:00
connieshi
b888d9620b
Support shape theming in Chip component.
...
PiperOrigin-RevId: 219373344
2018-11-01 16:16:14 -07:00
isabellekim
e9a8d48f60
Fixes MaterialShadowDrawable shadow to respect bounds that don't start at (0,0)
...
PiperOrigin-RevId: 219367777
2018-11-01 16:15:40 -07:00
cketcham
22cd4dba4f
Prevent invalidating MaterialShapeDrawable if parameters haven't changed
...
PiperOrigin-RevId: 219319784
2018-11-01 16:13:36 -07:00
afohrman
a25e13ca39
Update isStateful() method in MaterialShapeDrawable.
...
isStateful() should include the statefulness of the fill and stroke colors.
PiperOrigin-RevId: 219310584
2018-11-01 16:11:35 -07:00
marianomartin
85bec581d7
Add a constructor that takesdefault cornersize in ShapeAppearanceModel
...
PiperOrigin-RevId: 219308037
2018-11-01 16:11:12 -07:00
afohrman
ed37888efe
Remove MaterialShapeDrawable hairline inset from fill bounds.
...
PiperOrigin-RevId: 219303758
2018-11-01 16:09:21 -07:00
connieshi
d9d9b6e1ef
Change scope of #getFillBounds to protected so children can override it.
...
PiperOrigin-RevId: 219227988
2018-11-01 16:08:38 -07:00
connieshi
0f764e9a15
Change scope of #getBoundsAsRectF and #drawShape to be protected so the children of MSD could call them.
...
PiperOrigin-RevId: 219189920
2018-11-01 16:08:10 -07:00
dniz
fadcb7fc31
Add a MaterialAttributes#resolveAttribute method that doesn't throw, a
...
MaterialColors#getColor method that allows for a default value, and a MaterialResources#getColorStateList that accepts a TintTypedArray
PiperOrigin-RevId: 219170329
2018-11-01 16:07:21 -07:00
dniz
3637c23078
Dark theme color palette
...
PiperOrigin-RevId: 219143246
2018-11-01 16:05:24 -07:00
afohrman
38ef896da2
Adjust corners of MaterialShapeDrawable's stroke to draw the stroke perfectly over the fill.
...
To draw the stroke with the correct corner radius, MaterialShapeDrawable now calculates what the corner radius should be and adjusts the stroke accordingly.
Before this change, the corner radius was calculated such that the stroke didn't fully reach the edges of the shape. This change tweaks the corner radius calculation so that the stroke's path matches the fill's path and is overlaid directly on top of the fill's shape.
PiperOrigin-RevId: 219139586
2018-11-01 16:04:35 -07:00
cketcham
3bc7afd292
Disable native shadows when compat shadows are always drawn.
...
PiperOrigin-RevId: 219134990
2018-11-01 16:04:08 -07:00
afohrman
7656db9b1e
Update TabLayout and MaterialButtonHelper documentation for LayerDrawable workaround.
...
PiperOrigin-RevId: 219127481
2018-11-01 16:03:25 -07:00
afohrman
14460ac3dd
Add a layering method to blend surface and onSurface colors without an alpha
...
value.
PiperOrigin-RevId: 218902432
2018-10-28 21:47:59 -04:00
afohrman
52eb143e99
Optimize stroke inset bounds method.
...
Use RectF#inset() instead of manually insetting the stroke by half of the stroke width.
PiperOrigin-RevId: 218887035
2018-10-28 21:47:13 -04:00
cketcham
560c982284
Enable shadows for BottomAppBar
...
PiperOrigin-RevId: 218868156
2018-10-28 21:44:27 -04:00
dniz
d03f490740
Snackbar update label text color to new color system
...
PiperOrigin-RevId: 218861625
2018-10-28 21:42:33 -04:00
cketcham
f6f2f98c66
Read color value as CSL correctly on API 15 and below
...
PiperOrigin-RevId: 218858216
2018-10-28 21:41:38 -04:00
connieshi
12b56e226a
Make ChipSurfaceColor attribute private, remove its public getter/setters.
...
PiperOrigin-RevId: 218680794
2018-10-28 21:39:27 -04:00
leticiars
7169461605
Initial support for color subsystem in MDC text fields.
...
PiperOrigin-RevId: 218608066
2018-10-28 19:14:20 -04:00
cketcham
ab1992a2ba
Fix shadow rendering and add shadow rotation angle for MaterialShapeDrawable
...
PiperOrigin-RevId: 218576270
2018-10-28 19:13:20 -04:00
marianomartin
e192fbe3e0
Use round rect when possible in MSD
...
PiperOrigin-RevId: 218559377
2018-10-28 19:12:46 -04:00
cketcham
b623595c7f
Fix logic which determines when shadow should be drawn inside the bounds of an arc vs outside
...
PiperOrigin-RevId: 218525816
2018-10-28 19:12:19 -04:00
melaniegoetz
71c2312c09
fix iconPadding when textStart is used as icon gravity
...
PiperOrigin-RevId: 218442537
2018-10-28 19:11:51 -04:00
afohrman
ccf98970c2
Add methods to get and set stroke and fill paint colors.
...
Also refactor some of the stroke methods, since stroke was using the tint rather than the color to color the stroke.
PiperOrigin-RevId: 218383900
2018-10-28 18:34:50 -04:00
cketcham
530100e574
Add modes to control compat shadows for MaterialShapeDrawable
...
PiperOrigin-RevId: 217861830
2018-10-28 18:32:26 -04:00
cketcham
2edfef1a6c
Draw compatibility shadows if the shape is concave or native shadows aren't supported.
...
PiperOrigin-RevId: 217689320
2018-10-28 18:28:35 -04:00
gauthams
17ffd91b6c
Add cornerRadius setter to MaterialShapeDrawable.
...
PiperOrigin-RevId: 217643698
2018-10-28 18:28:07 -04:00
ldjesper
5258d3ddc1
Update Dialog Title styling to material design specs
...
PiperOrigin-RevId: 217565758
2018-10-28 18:27:27 -04:00
afohrman
3216dd634b
Fix typo in TextInputLayout.
...
In the word "visibility".
PiperOrigin-RevId: 217509351
2018-10-28 18:25:47 -04:00
gauthams
6abaa62d56
Update MaterialShapeDrawable to return dummy ConstantState.
...
PiperOrigin-RevId: 217412761
2018-10-28 18:24:30 -04:00
dniz
6e6692eb57
Update ActionBar to use new color system
...
PiperOrigin-RevId: 217321401
2018-10-28 18:14:54 -04:00
isabellekim
e8cb537a6e
Update color state lists for bottom navigation items to match specs.
...
PiperOrigin-RevId: 217318149
2018-10-28 18:13:08 -04:00
ldjesper
515e84775a
Automated g4 rollback of changelist 216865347
...
PiperOrigin-RevId: 216874169
2018-10-28 18:11:59 -04:00
ldjesper
8942b12fff
Dialog Title Styling
...
PiperOrigin-RevId: 216865347
2018-10-28 17:58:20 -04:00
dniz
ea40a1d406
Update Toolbar to use new color system
...
PiperOrigin-RevId: 216770087
2018-10-11 18:31:53 -04:00
Alex Lockwood
0c9094a1eb
[AppBarLayout] Update AppBarLayout to use the 3-arg view constructor
...
Without this fix, it is impossible for developers to properly make proper use of the `defStyleAttr` view constructor argument.
This PR fixes the bug filed here: https://issuetracker.google.com/issues/117316283
Resolves https://github.com/material-components/material-components-android/pull/212
PiperOrigin-RevId: 216750232
2018-10-11 18:31:34 -04:00
marianomartin
169ac3f142
Add ability to set shader on border paint for MSD
...
PiperOrigin-RevId: 216709276
2018-10-11 18:30:54 -04:00
marianomartin
9e36c150c0
Fix most javadocs errors
...
PiperOrigin-RevId: 216697274
2018-10-11 18:24:53 -04:00
connieshi
f3a95d09fe
Avoid constantly invalidating ChipDrawable when used in standalone mode.
...
Created TextAppearanceFontCallback (a fork of FontCallback) in order to pass parameter indicating whether font was resolved synchronously.
PiperOrigin-RevId: 216566240
2018-10-11 18:21:33 -04:00