ldjesper
c0fb5ad1af
Fix Date Picker Catalog Demo to retain listeners
...
PiperOrigin-RevId: 256421089
2019-07-03 15:49:03 -04:00
Antonin Fouques (CmoaToto)
7787a8257d
use .equalsIgnoreCase(...) instead of .toLowerCase().equals(...)
...
GIT_ORIGIN_REV_ID=173665654ad165cee4c3da64af4fd60afa9a1f61
Resolves https://github.com/material-components/material-components-android/pull/411
PiperOrigin-RevId: 256404636
2019-07-03 15:19:19 -04:00
ldjesper
39f4a36d0b
Remove Abstract Calendar Pickers in favor of options
...
PiperOrigin-RevId: 256402016
2019-07-03 14:16:01 -04:00
leticiars
15b721c750
Fixing input text not adjusting to start/end icons in some cases.
...
PiperOrigin-RevId: 256369941
2019-07-03 14:14:06 -04:00
raajkumars
d7a92485f8
Added support to automatically inflate MaterialTextView component into TextView.
...
Added support to prevent applying line heights from text appearance styles if the current theme sets the flag 'textAppearanceLineHeightEnabled' to false.
PiperOrigin-RevId: 256216184
2019-07-03 14:12:29 -04:00
dniz
37534561f2
Add component styles that swap between primary and surface styles depending on light vs dark theme
...
Makes it easier for devs to implement: https://material.io/design/color/dark-theme.html#custom-application
PiperOrigin-RevId: 256208965
2019-07-03 14:11:49 -04:00
marianomartin
15f2a245e1
Implement Shapeable in MaterialCardView
...
PiperOrigin-RevId: 256181803
2019-07-03 14:10:09 -04:00
marianomartin
152f05adbc
Internal cleanup
...
PiperOrigin-RevId: 256180803
2019-07-03 14:09:17 -04:00
cketcham
c6c4ec4849
Fix FAB insets when anchored to BAB.
...
PiperOrigin-RevId: 256167953
2019-07-03 14:08:08 -04:00
dniz
f2db1d9ac9
Add color theme attributes that swap between primary and surface colors depending on light vs dark theme
...
Makes it easier for devs to implement: https://material.io/design/color/dark-theme.html#custom-application
PiperOrigin-RevId: 255962470
2019-07-03 14:05:18 -04:00
marianomartin
c695592f90
Remove redeclaration of @Duration annotation from Snackbar in favor
...
of inheriting it and the constant values from BaseTransientBottomBar.
PiperOrigin-RevId: 255629856
2019-07-03 14:04:20 -04:00
marianomartin
164bf0fabd
Internal cleanup
...
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -04:00
ldjesper
39d0dfd1c6
Internal Clean-up
...
PiperOrigin-RevId: 255488842
2019-07-03 14:02:09 -04:00
dniz
cd1b6cdf66
Update TabLayout elevation overlays to be based absolute elevation, factoring in the elevation of all parent views
...
Resolves https://github.com/material-components/material-components-android/issues/381
PiperOrigin-RevId: 255478483
2019-07-03 14:01:02 -04:00
marianomartin
469c12636d
Change snackbar duration timeout for a11y
...
PiperOrigin-RevId: 255456517
2019-07-03 14:00:16 -04:00
ldjesper
fb47d9d48f
Add Year Selection View
...
PiperOrigin-RevId: 255452451
2019-07-03 13:58:01 -04:00
marianomartin
ad8003d8e9
Internal cleanup
...
PiperOrigin-RevId: 255441067
2019-07-03 13:56:54 -04:00
dniz
5df3bebd63
Update elevation overlays to be based absolute elevation, factoring in the elevation of all parent views
...
Will follow-up with TabLayout absolute elevation separately
Resolves https://github.com/material-components/material-components-android/issues/381
PiperOrigin-RevId: 255404830
2019-07-03 13:55:49 -04:00
Jaeyoung
841d660439
Update MaterialButtonToggleGroup.java
...
fix wrong closing tag
Resolves https://github.com/material-components/material-components-android/pull/410
GIT_ORIGIN_REV_ID=2d55ec5261ba986863ac7b3a6cdd277a11d64784
PiperOrigin-RevId: 255404599
2019-07-03 13:52:59 -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
marianomartin
006e4af031
Internal cleanup
...
PiperOrigin-RevId: 255258571
2019-06-26 19:19:36 -04:00
isabellekim
bee37933f4
Update chips to support state_checkable.
...
PiperOrigin-RevId: 255186618
2019-06-26 11:22:10 -04:00
marianomartin
d8eeb000c6
Internal cleanup
...
PiperOrigin-RevId: 254963494
2019-06-26 11:21:03 -04:00
ataulm
c045cca69d
[BottomNavigation] Add tooltip fallback to Bottom Navigation item titles
...
Resolves https://github.com/material-components/material-components-android/pull/409
GIT_ORIGIN_REV_ID=c6cbfcc4ff9cf7c0fa48a929f7950848f5b9dd8e
PiperOrigin-RevId: 254824856
2019-06-24 17:33:01 -04:00
dniz
106085a62f
Update selection controls (MaterialCheckBox, MaterialRadioButton, SwitchMaterial) to apply material colors in onAttachedToWindow() instead of constructor
...
PiperOrigin-RevId: 254818917
2019-06-24 17:32:13 -04:00
raajkumars
12024f61a6
Added MaterialTextView component, which supports the ability to pass the line height value via text appearance style.
...
PiperOrigin-RevId: 254790727
2019-06-24 17:30:00 -04:00
marianomartin
a010a46015
[MaterialCardView] Talkback does not say whether a card is selected
...
PiperOrigin-RevId: 254763915
2019-06-24 17:28:23 -04:00
isabellekim
b857c791f9
Change ripples on Chip 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_ripple_(pressed|focused|hovered|default)_alpha values which have
been defined to account for the different implementations of RippleDrawable.
PiperOrigin-RevId: 254737730
2019-06-24 17:27:42 -04:00
ldjesper
d97520cf58
Fixed an issue where styles weren't reloading on a landscape change.
...
PiperOrigin-RevId: 254460167
2019-06-24 17:22:38 -04:00
ldjesper
5dc5e4fa0d
Material Calendar Date Range Picker: Switch from Calendar to Long return type
...
PiperOrigin-RevId: 254456138
2019-06-24 17:14:55 -04:00
isabellekim
3dcbac3255
Adds a method to RippleUtils that should be called before passing a CSL
...
to RippleDrawable. It will:
1. return the original non-null CSL, unmodified. If null, it will return
a transparent CSL
2. log a warning if the original CSL has a non-transparent pressed color
and a transparent default color for API levels 22-27 (this will cause
ripples to end early).
PiperOrigin-RevId: 254431342
2019-06-24 17:14:09 -04:00
marianomartin
367b295624
Internal cleanup
...
PiperOrigin-RevId: 254414602
2019-06-24 17:12:42 -04:00
ldjesper
ce2d7dec5e
Alternate Theme layout demos. Correct usage of shapeAppearance attributes based on screensize. Range pickers default to dialog mode when screens are larger than 480dp.
...
PiperOrigin-RevId: 254324320
2019-06-24 17:11:24 -04:00
leticiars
326dc8a13a
Animating dropdown arrow icon.
...
PiperOrigin-RevId: 254279577
2019-06-24 17:05:54 -04:00
marianomartin
1c5df57127
Make ShapeAppearancePathProvider not restricted
...
PiperOrigin-RevId: 254229963
2019-06-24 17:03:52 -04:00
isabellekim
5bf8f92e78
Update RippleDrawableCompat to use MaterialShapeDrawable as a delegate and implement ConstantState.
...
This will make RippleDrawable work with a single-value ColorStateList as previously it getConstantState().newDrawable() would recreate a MaterialShapeDrawable, losing the logic in RippleDrawableCompat.
PiperOrigin-RevId: 254207262
2019-06-24 17:02:22 -04:00
marianomartin
f7342c936a
Internal cleanup
...
PiperOrigin-RevId: 254201980
2019-06-24 16:58:55 -04:00
ldjesper
fd686f2074
MaterialCalendar Listeners added. Updated catalog demo to use listeners.
...
PiperOrigin-RevId: 254122526
2019-06-24 16:56:23 -04:00
ldjesper
6d5d683921
Remove inset touch cancel deadzone
...
PiperOrigin-RevId: 254072032
2019-06-24 16:55:38 -04:00
ldjesper
0ef0d097b2
Change ripple to CSL from theme attribute for KitKat
...
PiperOrigin-RevId: 254071171
2019-06-24 16:54:50 -04:00
ldjesper
9145e9c92c
Autosize header text
...
PiperOrigin-RevId: 254036840
2019-06-24 16:54:03 -04:00
isabellekim
9a685eb2ce
Make Chip's close icon's ripple jump to the current state before
...
drawing.
PiperOrigin-RevId: 254000578
2019-06-24 16:53:17 -04:00
marianomartin
4591f29bb0
Internal cleanup
...
PiperOrigin-RevId: 253994541
2019-06-24 16:52:19 -04:00
isabellekim
cadd0238cf
Refactor RippleDrawableCompat to add a method to RippleUtils to determine whether a compat (pre-21) "ripple" should be drawn. This will be used by components that handle their own drawing of compat ripples (like Chip).
...
PiperOrigin-RevId: 253992004
2019-06-24 16:51:22 -04:00
marianomartin
c2807d5d47
Internal cleanup
...
PiperOrigin-RevId: 253863905
2019-06-24 16:48:08 -04:00
Material Design Team
b23d8058c3
Automated g4 rollback of changelist 253789519
...
PiperOrigin-RevId: 253856871
2019-06-24 16:47:11 -04:00
leticiars
b89a91c710
Animating clear button end icon.
...
PiperOrigin-RevId: 253852706
2019-06-24 16:45:49 -04:00
isabellekim
1f4ea84a33
Adding dimension resources for ripple ColorStateLists.
...
Because ripples are implemented differently for different API levels, we are adding dimension resources that can be used when specific alphas are desired for the pressed, focused, and hovered states.
Ripples on top of surface color should use:
mtrl_low_ripple_pressed_alpha: effective 12%
mtrl_low_ripple_focused_alpha: effective 12%
mtrl_low_ripple_hovered_alpha: effective 4%
mtrl_low_ripple_default_alpha: effective 0%
Ripples on top of primary / secondary colors should use:
mtrl_high_ripple_pressed_alpha: effective 24%
mtrl_high_ripple_focused_alpha: effective 24%
mtrl_high_ripple_hovered_alpha: effective 8%
mtrl_high_ripple_default_alpha: effective 0%
Note: the "default" alpha needs to be non-zero for API 22-27 in order to prevent ripples for terminating prematurely.
PiperOrigin-RevId: 253825206
2019-06-24 16:44:58 -04:00
isabellekim
75b5759de7
Replace //noinspection with @TargetApi(VERSION_CODES.LOLLIPOP) as it is
...
more specific and supported in Android Studio.
PiperOrigin-RevId: 253824167
2019-06-24 16:42:31 -04:00
ldjesper
c9f8002238
MaterialCalendar dimens based upon screen width
...
PiperOrigin-RevId: 253816269
2019-06-24 16:39:36 -04:00