marianomartin
731586fae6
Fix color subsystem for card view
...
PiperOrigin-RevId: 213442351
2018-09-28 14:52:58 -04:00
dniz
dff21575fb
Add ContextUtils getActivity() method
...
PiperOrigin-RevId: 213356904
2018-09-28 14:52:27 -04:00
leticiars
df551410c4
Fixing padding of hint label when there is a leading icon
...
PiperOrigin-RevId: 213277053
2018-09-28 14:49:23 -04:00
leticiars
f317d634cf
Fixing text overlapping end toggle drawable when app starts.
...
PiperOrigin-RevId: 212885605
2018-09-14 11:04:37 -04:00
ldjesper
20bbf1523b
Improvements to readability and javadoc of MaterialShapeDrawable
...
PiperOrigin-RevId: 212875571
2018-09-14 11:04:01 -04:00
connieshi
b6e96bf4d0
To avoid extra memory allocation, only run workaround for a framework bug that doesn't support themed color referenced in ColorStateList for API level < 23 when the Android version is pre-API 23.
...
Add test for setting a chip's text color to a CSL that references a themed color.
PiperOrigin-RevId: 212871700
2018-09-14 11:03:34 -04:00
ldjesper
f79c91e53e
Allow different stroke and fill colors for MaterialShapeDrawable
...
PiperOrigin-RevId: 212857049
2018-09-14 11:03:07 -04:00
connieshi
f64b2fb3c7
Automated g4 rollback of changelist 212803097
...
PiperOrigin-RevId: 212821631
2018-09-14 11:02:38 -04:00
connieshi
5b701669ac
Reuse text color from ChipDrawable#getTextAppearance instead of using additional resources to refetch it.
...
PiperOrigin-RevId: 212803097
2018-09-14 11:02:17 -04:00
afohrman
7fb37e86ba
Make MaterialShapeDrawable anti-alias its Paint.
...
Anti-aliasing the Paint by default eliminates the appearance of jagged edges and corners.
Anti-aliasing is currently supported by calling setPaintFlags() on MaterialShapeDrawable, but it is not yet enabled by default.
PiperOrigin-RevId: 212709536
2018-09-14 11:00:52 -04:00
dniz
461101bc5b
Fix Gradle build by removing Java 8 method reference
...
PiperOrigin-RevId: 212685609
2018-09-14 11:00:30 -04:00
dniz
02382c612a
Update Chip to use compat setLayoutDirection() method
...
PiperOrigin-RevId: 212680124
2018-09-14 10:59:52 -04:00
cketcham
655b3dc1b0
Add materialThemeOverlay attribute
...
PiperOrigin-RevId: 212665868
2018-09-14 10:58:21 -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
ldjesper
3219f7dc3e
Standardize Selection Controls across API versions and maintain XML configs
...
PiperOrigin-RevId: 212510051
2018-09-14 10:57:21 -04:00
ldjesper
c6266f23ef
Modify CheckBox to color without alpha.
...
PiperOrigin-RevId: 212484594
2018-09-14 10:56:49 -04:00
dniz
752b7b2ca1
Use specific color surface resource instead of reusing background
...
PiperOrigin-RevId: 212432542
2018-09-14 10:55:37 -04:00
melaniegoetz
09b22f37d0
Fix DayNight hardcoding certain color values
...
PiperOrigin-RevId: 212364719
2018-09-14 10:54:12 -04:00
Material Design Team
850795da31
Delegates CollapsingTextHelper text attributes processing to TextAppearance.
...
This removes duplication between the 2 implementations and automatically fixes font loading bug in CollapsingToolbarLayout & TextInputLayout. It has a side effect of changing font loading from sync to async but it shouldn't affect anyone since font loading wasn't really working in the first place. It may affect the UIs that were affected by the original bug though.
To alleviate possible "font flickering" due to async loading, CollapsingTextHelper defers the TextPaint changes until the font is actually loaded.
Another scenario the async loading would have an impact on is when the font is manually overwritten with CollapsingTextHelper.setTypeface() while async op is still ongoing. The result of async load would then overwrite the font back to the originally requested. This happens in TextInputLayout which overwrites its own font setting to this of its child whenever its added. This may happen before async op completes. To guard against that, any direct font setting automatically cancels the async load (cancels == ignores the result when it comes).
PiperOrigin-RevId: 212328671
2018-09-14 10:53:39 -04:00
melaniegoetz
8f02385c84
Color subsystem updates for MDC-FAB
...
PiperOrigin-RevId: 212311827
2018-09-14 10:53:01 -04:00
dniz
3dc5733f36
Update Snackbar to use new color system
...
PiperOrigin-RevId: 212275277
2018-09-14 10:52:33 -04:00
connieshi
d796149d25
Update chip to use themed color attributes.
...
PiperOrigin-RevId: 212104772
2018-09-14 10:51:49 -04:00
Alex Saveau
3edda8be14
Add baseline alignment support to TextInputLayout.
...
Resolves https://github.com/material-components/material-components-android/issues/13 .
Resolves https://github.com/material-components/material-components-android/pull/56 .
PiperOrigin-RevId: 212022367
2018-09-14 10:51:16 -04:00
ldjesper
8a3856922f
Style Material RadioButton
...
PiperOrigin-RevId: 211998722
2018-09-14 10:50:38 -04:00
cketcham
a8c0d6f762
Remove workaround for background drawable state for TextInputLayout
...
It appears this workaround is no longer necessary and is causing the EditText to lose its padding on sdk 21 and 22.
PiperOrigin-RevId: 211798802
2018-09-07 11:55:57 -04:00
Material Design Team
a5d38d43d6
Changes SwitchMaterial coloring to composites instead of blends.
...
Also provides color layering utilities and removes text color changes.
PiperOrigin-RevId: 211692944
2018-09-07 11:55:28 -04:00
Material Design Team
5494459666
Adds a Theme.MaterialComponents.DayNight theme
...
PiperOrigin-RevId: 211539099
2018-09-07 11:51:19 -04:00
connieshi
bf33b9e4e7
Override onInitializeAccessibilityNodeInfo to explicitly tell the AccessibilityInfoNode whether a chip is checkable or clickable.
...
Avoid setting custom ExploreByTouchHelper as delegate in pre-N unless there's a close/trailing icon. This is necessary to workaround a Talkback bug.
PiperOrigin-RevId: 211490101
2018-09-07 11:49:26 -04:00
cketcham
7528288743
Fix BottomAppBar animation bug where calling replaceMenu() will cancel a currently running animation
...
PiperOrigin-RevId: 211449657
2018-09-07 11:36:50 -04:00
cketcham
664a0a9100
Update FabTransformationBehavior to transform the FloatingActionButton
...
Rather than just setting the FloatingActionButton to be invisible, we should actually perform the translation transformation on it. This is necessary to allow for other views which may be watching for transformations (such as the BAB) to update.
PiperOrigin-RevId: 211080287
2018-08-31 11:13:50 -04:00
cketcham
d6e4991e78
Fix default FAB animation for BottomAppBar
...
PiperOrigin-RevId: 210920372
2018-08-31 11:13:24 -04:00
marianomartin
e0e7c51991
BottomAppBar change interpolation to be 0 if fab is not visible
...
PiperOrigin-RevId: 210912015
2018-08-31 11:13:05 -04:00
afohrman
1335815927
Fix MaterialShapeDrawable's handling of tint.
...
Before this change, MaterialShapeDrawable incorrectly handled ColorStateLists. Only the color defined "last" in a ColorStateList was used. This is because MaterialShapeDrawable was not properly updating and handling state changes. This change fixes the issue by updating the tint filter appropriately and overriding some methods which should have been overridden.
PiperOrigin-RevId: 210779870
2018-08-31 11:12:24 -04:00
marianomartin
0c78325131
Automated g4 rollback of changelist 210712811
...
PiperOrigin-RevId: 210768027
2018-08-31 11:12:09 -04:00
marianomartin
8441bb689d
Fix BottomAppBar background on Kitkat
...
PiperOrigin-RevId: 210763753
2018-08-31 11:11:45 -04:00
cketcham
f2aba00d8a
Set maxButtonHeight for BottomAppBar to avoid alignment issues
...
PiperOrigin-RevId: 210763592
2018-08-31 11:11:26 -04:00
connieshi
bca3dad666
Add surface layer to ChipDrawable.
...
PiperOrigin-RevId: 210727850
2018-08-31 11:11:01 -04:00
afohrman
49dc5f4e7c
Make MaterialShapeDrawable respect to InsetDrawables.
...
Before this change, MaterialShapeDrawable did not draw with respect to InsetDrawables. The problem was that MaterialShapeDrawable was using the Canvas to determine where to draw, rather than the bounds. This change reworks MaterialShapeDrawable to use the bounds to calculate and draw the shape's path, rather than the Canvas.
PiperOrigin-RevId: 210724227
2018-08-29 11:33:35 -04:00
marianomartin
72eaab9ff2
TextInputLayout: setBoxCornerRadiiResources param mismatch
...
PiperOrigin-RevId: 210719217
2018-08-29 11:32:56 -04:00
marianomartin
3758c170c3
MaterialCardView update foreground drawables instead of creating new ones.
...
PiperOrigin-RevId: 210712811
2018-08-29 11:32:17 -04:00
dniz
6a1d85f08c
Action Bar typography styling
...
PiperOrigin-RevId: 210604964
2018-08-29 11:31:51 -04:00
gauthams
74aaace931
Update legacy TabLayout style to set tabTextColor to @null, so that it uses textColor from tabTextAppearance.
...
PiperOrigin-RevId: 210592264
2018-08-28 16:45:27 -04:00
Material Design Team
56ee534de2
Creates and colors SwitchMaterial
...
PiperOrigin-RevId: 210574240
2018-08-28 16:44:02 -04:00
Material Design Team
b0a9ff6658
Add an override to setLayoutDirection from the parent text view of chips.
...
Setting layoutDirection on TextViews to the direction of the View locale is necessary to ensure that text on chips is rendered correctly in RTL mode. Previously, it would default to LTR mode and then not get set with proper paddings until you interact with a chip to invalidate the layout.
Before (RTL): https://surbhimadan.users.x20web.corp.google.com/www/textrtl_before.mp4
After (RTL): https://surbhimadan.users.x20web.corp.google.com/www/textrtl_after.mp4
Verified no changes to LTR.
PiperOrigin-RevId: 210560864
2018-08-28 16:43:46 -04:00
dniz
919f2183f2
Change Snackbar to use margin instead of padding for window inset positioning
...
PiperOrigin-RevId: 210554683
2018-08-28 16:43:13 -04:00
gauthams
14e9a020a1
Update TabLayout to use new color attributes
...
PiperOrigin-RevId: 210553777
2018-08-28 16:42:54 -04:00
marianomartin
1536adecf2
Fix color subsystem for Bottom Navigation
...
PiperOrigin-RevId: 210544385
2018-08-28 16:42:21 -04:00
gauthams
cfbc6bb50b
Reuse color resources rather than having attribute dependency in MDC Bridge themes
...
PiperOrigin-RevId: 210438272
2018-08-28 16:41:54 -04:00
cketcham
abee218646
Fix height of BottomAppBar in landscape
...
BottomAppBar was incorrectly using the Toolbar min height which is less tall in landscape. It should always be 56dp.
PiperOrigin-RevId: 210362480
2018-08-28 16:41:25 -04:00
dniz
498d200f40
Fix Toolbar & ActionBar sizes for large screens
...
PiperOrigin-RevId: 210361782
2018-08-28 16:41:06 -04:00