1066 Commits

Author SHA1 Message Date
dniz
8dc2eefd19 Update comments
PiperOrigin-RevId: 259405175
2019-07-22 21:20:09 -04:00
marianomartin
11e6dd134e Cleanup BaseTransientBottomBar and write test making sure touch events are handled properly
PiperOrigin-RevId: 259260862
2019-07-22 12:22:46 -04:00
connieshi
0558a36c9a Add support for configuring badge gravity.
PiperOrigin-RevId: 259223232
2019-07-22 12:22:00 -04:00
dniz
0512f776c5 Remove sub-package AndroidManifest.xml files from lib directory
PiperOrigin-RevId: 258390736
2019-07-16 13:18:32 -04:00
dniz
ff04684ecf Remove/fix unneeded dependencies from textview package
PiperOrigin-RevId: 258262937
2019-07-15 20:02:30 -04:00
ldjesper
2a40e2cfe9 Rename GridSelector to DateSelector
PiperOrigin-RevId: 258173492
2019-07-15 19:21:34 -04:00
ldjesper
de3a04c269 Add Override statements for clarity to GridSelector
PiperOrigin-RevId: 257878720
2019-07-15 19:20:44 -04:00
isabellekim
a628bf516b Revert the library to compile with Java 7: revert lambdas, add necessary casts, and make some variables final.
Continue compile shrine demo, catalog, and tests with Java 8.

PiperOrigin-RevId: 257874888
2019-07-15 19:19:23 -04:00
ldjesper
e6ee275d97 Validate TextInput dates in MaterialDatePicker
PiperOrigin-RevId: 257857397
2019-07-15 19:16:13 -04:00
isabellekim
36a86f4f93 Switch from DefaultLifecycleObserver to LifecycleEventObserver as the material library will be going to back to compiling to Java 7.
PiperOrigin-RevId: 257833898
2019-07-15 19:15:06 -04:00
Material Design Team
c42b77fdad Do not unconditionally override icon tint in BottomNavigationItemView.
PiperOrigin-RevId: 257828981
2019-07-15 19:14:14 -04:00
marianomartin
b5ec7135c5 Rollback accidental changes to snackbar
PiperOrigin-RevId: 257821452
2019-07-15 19:13:06 -04:00
marianomartin
0a5d66ffc0 Internal cleanup
PiperOrigin-RevId: 257802841
2019-07-15 19:07:26 -04:00
ldjesper
6eb692d3eb Add CalendarConstraints Builder
PiperOrigin-RevId: 257651910
2019-07-15 19:06:00 -04:00
ldjesper
dfbb1d091e In MaterialCalendar, Switch from Calendar to Long in all cases
PiperOrigin-RevId: 257610913
2019-07-11 14:37:13 -04:00
dniz
68ddfee0ed Remove Material's legacy androidx core_ui and core_utils dependencies in favor of more granular dependencies (coordinatorlayout, graphics, interpolator, customview)
PiperOrigin-RevId: 257452569
2019-07-10 15:17:12 -04:00
ldjesper
fb44b908f4 Use CalendarBounds to invalidate out of bounds dates
PiperOrigin-RevId: 257249906
2019-07-10 13:45:18 -04:00
marianomartin
31d0e9ac4d [MaterialCardView] Add (set|get)Progress
This allows to animate the shape of the card.
Using setProgress so that this works with MotionLayout as well.

PiperOrigin-RevId: 257241960
2019-07-10 13:43:58 -04:00
ldjesper
6b25a7a085 Remove listeners in MaterialCalendar GridSelector from user handling
PiperOrigin-RevId: 257194144
2019-07-09 13:02:06 -04:00
ldjesper
1ceab86add Remove draw methods from GridSelector
PiperOrigin-RevId: 257099066
2019-07-09 13:00:53 -04:00
connieshi
6589e54a47 Publicly expose a hidden setter (ChipGroup#setSingleLine) inherited from a restricted parent class (FlowLayout).
PiperOrigin-RevId: 257046797
2019-07-09 12:59:59 -04:00
leticiars
413021576e Fixing extra padding being added to icon views.
PiperOrigin-RevId: 257045498
2019-07-09 12:59:05 -04:00
marianomartin
a648bac7b2 Merge DrawableUtils classes
PiperOrigin-RevId: 257022779
2019-07-09 12:56:12 -04:00
marianomartin
19aeb9b7a2 Delegate overscrollmode in navigation view to inflated MenuView
PiperOrigin-RevId: 256988688
2019-07-09 12:54:18 -04:00
marianomartin
59a41855fb [MaterialCardView] checked icon sometimes takes up the entire card
PiperOrigin-RevId: 256427401
2019-07-09 12:49:25 -04:00
mao
d37303e65e Update CircularRevealHelper.Delegate to public
GIT_ORIGIN_REV_ID=be8629447df9ac2a66a902098953227239726d22

Resolves https://github.com/material-components/material-components-android/pull/339

PiperOrigin-RevId: 256425149
2019-07-09 12:48:38 -04:00
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