1062 Commits

Author SHA1 Message Date
dniz
b41b07af5c Update naming of Snackbar gesture inset ignore flag
PiperOrigin-RevId: 268914646
2019-10-03 15:50:23 -04:00
leticiars
0e410d482a Fixing ExposedDropdownMenu crash when device is rotated.
Resolves https://github.com/material-components/material-components-android/issues/561

PiperOrigin-RevId: 268753819
2019-10-03 15:50:23 -04:00
Material Design Team
8555310d1a Fix fragment leak in Material NavigationView
Need to unregister the ViewTreeObserver, which was previously registered on the top-most View in the entire hierarchy.

PiperOrigin-RevId: 268532017
2019-10-03 15:50:23 -04:00
connieshi
4f771b2d0b Update badge gravity enum values to use Gravity values. Add unit test.
PiperOrigin-RevId: 268485092
2019-10-03 15:50:23 -04:00
ldjesper
1d96b56ef6 Increase some MaterialDatePicker dimensions to handle device scaled font sizes on small devices
PiperOrigin-RevId: 268452885
2019-10-03 15:50:23 -04:00
ldjesper
ab3d88aee0 Update DateValidator JavaDocs in MaterialDatePicker
PiperOrigin-RevId: 268451832
2019-10-03 15:50:23 -04:00
cketcham
99a8bd7fef Add space to the bitmap for drawing shadows to prevent clipping
PiperOrigin-RevId: 268449384
2019-10-03 15:50:23 -04:00
ldjesper
cc26cd90d9 Allow setting of MaterialDatePicker title via CharSequence plus JavaDoc updates
PiperOrigin-RevId: 268445763
2019-10-03 15:50:23 -04:00
ldjesper
d2cf948b15 Fix missing ok and cancel in landscape MaterialDatePicker
We make the middle pane scrollable in cases where things just will not fit

PiperOrigin-RevId: 268301091
2019-10-03 15:50:23 -04:00
ldjesper
e0a4d4e1a1 Fix NPE from MaterialDatePicker rotation when MaterialCalendar is not visible.
calendar.getCurrentMonth() is nullable so we check before accessing

PiperOrigin-RevId: 268290292
2019-10-03 15:50:23 -04:00
ldjesper
340497acbf Fix fuzzy boundary on selected year in MaterialDatePicker dialog mode
PiperOrigin-RevId: 268274108
2019-10-03 15:50:23 -04:00
ldjesper
6bc87889d6 Remove Month from the public API
PiperOrigin-RevId: 268242042
2019-10-03 15:50:23 -04:00
ldjesper
306d812377 MaterialDatePicker forces UTC
PiperOrigin-RevId: 267992416
2019-10-03 15:50:23 -04:00
ldjesper
e6cb937ca1 Remove MaterialDatePicker testing tags from the public scope in favor of package scope.
PiperOrigin-RevId: 267009956
2019-09-04 18:09:37 -04:00
ldjesper
72d54c653c Change picker package to com.google.android.material.datepicker
PiperOrigin-RevId: 267004501
2019-09-04 18:07:59 -04:00
marianomartin
3b75a113a7 Remove OnChangeListener from ExtendedFab
PiperOrigin-RevId: 266955697
2019-09-04 18:06:55 -04:00
ldjesper
2d428aee7c Fix today marker colors in MaterialDatePicker
PiperOrigin-RevId: 266942500
2019-09-04 18:06:10 -04:00
cketcham
f52407e1e3 Make cornerSize a private field
PiperOrigin-RevId: 266924741
2019-09-04 18:04:37 -04:00
cketcham
0ad01010b9 Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 266817244
2019-09-04 18:03:53 -04:00
marianomartin
3beaee4f94 Change extended fab API to make it simpler.
PiperOrigin-RevId: 266669035
2019-09-04 18:03:01 -04:00
ldjesper
6e9b3c6b30 In MaterialDatePicker after rotation, open to the same page if it was changed via swipe
PiperOrigin-RevId: 266462896
2019-09-04 18:01:33 -04:00
cketcham
fb272f84b4 Remove cloneable from corner treatments since ShapeAppearance and CornerTreatments are now immutable
PiperOrigin-RevId: 266422300
2019-09-04 18:00:22 -04:00
Material Design Team
a41d340b0d Add more a11y support to BottomSheetBehavior.
PiperOrigin-RevId: 266403799
2019-09-04 17:56:27 -04:00
ldjesper
2b57e89303 Cannonicalize on Month creation
PiperOrigin-RevId: 266384073
2019-09-04 14:22:29 -04:00
cketcham
27b58f1611 Make ShapeAppearanceModel immutable
PiperOrigin-RevId: 266378228
2019-09-04 14:20:35 -04:00
Connie
9ed90216a3 Revert "Fixed issue 531 by removing unnecessary calls to set compound drawables"
This reverts commit faf60b15bea73588e8c76fc348ace50dd430cf55.
2019-08-29 15:55:46 -04:00
Connie
b814e8ef74 Revert "Changed naming"
This reverts commit b467b494d9f87581c20009706bce4dc9a7cb8c44.
2019-08-29 15:55:46 -04:00
Sam
b467b494d9 Changed naming 2019-08-29 15:53:24 -04:00
Sam
faf60b15be Fixed issue 531 by removing unnecessary calls to set compound drawables 2019-08-29 15:53:24 -04:00
cketcham
7bb525ff59 Update usages of ShapeAppearanceModel to use Builder pattern
PiperOrigin-RevId: 266144471
2019-08-29 15:39:51 -04:00
cketcham
1f1871f634 Update usages of ShapeAppearanceModel to use Builder pattern
PiperOrigin-RevId: 266133670
2019-08-29 15:37:04 -04:00
cketcham
89026898dc Fix ActionMenuView position in RTL for BottomAppBar
PiperOrigin-RevId: 265997768
2019-08-29 15:35:04 -04:00
marianomartin
0d4515cb46 Internal cleanup
PiperOrigin-RevId: 265971745
2019-08-29 14:59:20 -04:00
dniz
102125d4b0 Fix ElevationOverlayProvider javadoc reference to absolute elevation @code view
PiperOrigin-RevId: 265923937
2019-08-29 14:58:05 -04:00
dniz
fe259b05f4 Add absolute elevation utilities to ElevationOverlayProvider
Resolves https://github.com/material-components/material-components-android/issues/483
Resolves https://github.com/material-components/material-components-android/issues/521

PiperOrigin-RevId: 265907637
2019-08-29 14:54:25 -04:00
marianomartin
c99f9522c7 Update peekHeight's getter and setter to be not final.
PiperOrigin-RevId: 265891346
2019-08-29 14:51:33 -04:00
cketcham
ca91442ba2 Add builder to ShapeAppearanceModel
PiperOrigin-RevId: 265806696
2019-08-29 12:21:55 -04:00
Material Design Team
79953b02e3 if we don't set anything, talkback will announce it as checkbox because this class extends AppCompatCheckBox. This fix set the class name to be generic android view so nothing is announced if view is not checkable or clickable
PiperOrigin-RevId: 265746456
2019-08-29 12:19:52 -04:00
dniz
72cfef981b Rename prefix mtrl_ to material_ in public resources
PiperOrigin-RevId: 265729121
2019-08-29 12:16:13 -04:00
marianomartin
71f65908fa Remove final from BottomSheetBehavior (set/get)State
PiperOrigin-RevId: 265685873
2019-08-29 12:09:31 -04:00
marianomartin
f5c9026efa Internal cleanup
PiperOrigin-RevId: 265550877
2019-08-29 11:39:58 -04:00
cketcham
5d99b1d693 Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 265525971
2019-08-29 11:37:11 -04:00
marianomartin
a5a300e171 Internal cleanup
PiperOrigin-RevId: 265503887
2019-08-29 11:26:23 -04:00
cketcham
86d4328e24 Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 265447585
2019-08-29 11:24:58 -04:00
cketcham
e2df233f5a Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 265133572
2019-08-29 11:23:29 -04:00
cketcham
1d2cb7aa35 Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 265133488
2019-08-29 11:21:03 -04:00
cketcham
9aa7c6c5e8 Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 265133335
2019-08-29 11:16:11 -04:00
cketcham
78f945776a Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 265057424
2019-08-29 11:08:56 -04:00
cketcham
440b6e7753 Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 265057396
2019-08-29 10:30:58 -04:00
cketcham
1538729814 Add @NonNull and @Nullable annotations
PiperOrigin-RevId: 265057078
2019-08-29 10:28:12 -04:00