cketcham
c831ecc99d
Add support for percentages to ShapeAppearanceModel
...
PiperOrigin-RevId: 272946740
(cherry picked from commit a130a0c3e048a6311ff70a5bcb7d50b1809f7251)
2019-10-04 16:46:21 -04:00
marianomartin
5ff7b35e74
Remove corner adjustment flag and code
...
PiperOrigin-RevId: 269652871
(cherry picked from commit d3d8c0a9fbaaa8cbf2155f59479aaa87029e8c8a)
2019-10-04 16:45:24 -04:00
marianomartin
18d4e6bf4d
Remove corner adjustment from MaterialButton and ExtendedFloatingActionButton.
...
ExtendedFloatingActionButton extends from MaterialButton so removing MaterialButton's corner size adjustment removes the adjustment from ExtendedFloatingActionButton, as well.
PiperOrigin-RevId: 268282804
(cherry picked from commit ca2db830d24d720b6db8009de3340ff41d029d1b)
2019-10-04 16:43:26 -04:00
ldjesper
f9e5bfde65
Remove unreleased deprecated method BottomSheetBehavior.getBottomSheetCallback before release
...
PiperOrigin-RevId: 272934464
(cherry picked from commit 8b90f02f2b49206194087ea50e3403dfccf58979)
2019-10-04 15:38:28 -04:00
cketcham
53e181b82d
Uncouple CornerSize from CornerTreatment
...
This allows for more easily updating the CornerSize independently from the CornerTreatment and makes it possible to create different types of CornerSizes such as percentage based corners. However, this means corner sizes can be different depending on the bounds of the shape, so the bounds need to be provided. MaterialShapeDrawable has bounds and the ShapeAppearanceModel, so there are new convenience methods there which return the current corner size for the current bounds of the drawable.
PiperOrigin-RevId: 272908508
(cherry picked from commit 0547d2a06bfa636990c99c74a7a16e02cef41647)
2019-10-04 15:38:10 -04:00
ldjesper
6f73b2ed8e
Remove deprecated getPathForSize not in any stable release
...
PiperOrigin-RevId: 272877489
(cherry picked from commit 17ff72c69aa892c82016d1ce9c80a91ee9160ce4)
2019-10-04 11:44:17 -04:00
ldjesper
c74dccbd89
Remove deprecated method not present in stable MaterialShapeDrawable#getStrokeTint
...
PiperOrigin-RevId: 272741709
(cherry picked from commit 5afdf00f80a56daa46a0056e41f5f91799b70fc4)
2019-10-04 11:44:06 -04:00
ldjesper
60216b04d3
Maintain API backwards compatability for BottomSheetBehavior from 1.0.0 by adding a Deprecated constructor.
...
PiperOrigin-RevId: 272683597
(cherry picked from commit 747ad12725046c71defe66085a3e1b74e1455440)
2019-10-04 11:43:32 -04:00
ldjesper
2966cfb15f
Make TabView a public final class since a field of that type is in the 1.0.0 public API
...
Reference: https://github.com/material-components/material-components-android/blob/master/lib/java/com/google/android/material/tabs/TabLayout.java#L1888
Resolves https://github.com/material-components/material-components-android/issues/581
PiperOrigin-RevId: 272592933
(cherry picked from commit 440fea02c82beb738a5f2b5876abf57fa026e965)
2019-10-04 11:42:10 -04:00
marianomartin
8410a88e73
Fix binary compatibility issues with MaterialShapeDrawable
...
These methods existed in 1.0.0 so they can't be removed.
PiperOrigin-RevId: 272665301
2019-10-03 15:50:23 -04:00
ldjesper
2f296f31e4
Update BottomSheetDialog to have consistent create and get signatures
...
This prevents extensions from causing a ClassCastException on calls to getDialog
Resolve https://github.com/material-components/material-components-android/issues/632
PiperOrigin-RevId: 272594580
2019-10-03 15:50:23 -04:00
dniz
d7b0a82e05
Update Snackbar#setGestureInsetBottomIgnored to return Snackbar
...
PiperOrigin-RevId: 272522128
2019-10-03 15:50:23 -04:00
ldjesper
28b5893234
Prevent possible NPE in TabLayoutMediator when an item is removed from the Adapter
...
ViewPager2.getCurrentItem() may not exist if the last item was selected and it is removed from the adapter.
Resolves https://github.com/material-components/material-components-android/issues/616
PiperOrigin-RevId: 272511958
2019-10-03 15:50:23 -04:00
Material Design Team
00ea72f344
Support registering multiple BottomSheetCallbacks
...
PiperOrigin-RevId: 271650665
2019-10-03 15:50:23 -04:00
hunterstich
5373d32307
Update FloatingActionButton to implement the Shapeable interface.
...
PiperOrigin-RevId: 271566824
2019-10-03 15:50:23 -04:00
marianomartin
f3bd092171
Remove content layout from card view
...
Due to numerous issues with padding, measure, and crashes with layout bindings. We decided to remove the inner layout.
PiperOrigin-RevId: 271495029
2019-10-03 15:50:23 -04:00
Material Design Team
f76f4626c5
Update BottomSheetBehavior documentation for accessibility.
...
PiperOrigin-RevId: 271443929
2019-10-03 15:50:23 -04:00
cketcham
b8da637c01
Update corner size for builder to use floats
...
PiperOrigin-RevId: 271428842
2019-10-03 15:50:23 -04:00
connieshi
310068c0ba
Add null checks to avoid NPE when tabs that have badges are reset .
...
Resolves https://github.com/material-components/material-components-android/issues/620
PiperOrigin-RevId: 271126107
2019-10-03 15:50:23 -04:00
Sam
95caa96c81
[MaterialButton] Fixed issue 531 by removing unnecessary calls to set compound drawables
...
Resolves https://github.com/material-components/material-components-android/pull/589
GIT_ORIGIN_REV_ID=3f167e1a3f5a369fc3bfda152f28b80c3cb25181
PiperOrigin-RevId: 270331104
2019-10-03 15:50:23 -04:00
cketcham
e1e020ce88
Fix nullable annotation for BottomSheetDialogFragment#getDialog()
...
PiperOrigin-RevId: 270061278
2019-10-03 15:50:23 -04:00
ldjesper
316cf31913
Update renamed private String GRID_SELECTOR_KEY to renamed class (DateSelector) in MaterialDatePicker
...
PiperOrigin-RevId: 269875653
2019-10-03 15:50:23 -04:00
ldjesper
86c00cf163
Change text scaling and landscape width for small screens.
...
PiperOrigin-RevId: 269862267
2019-10-03 15:50:23 -04:00
ldjesper
1d643851ac
Fix NPE when erasing text input box for SingleDateSelector
...
Resolves https://github.com/material-components/material-components-android/issues/590
PiperOrigin-RevId: 269852927
2019-10-03 15:50:23 -04:00
afohrman
d3ef78f55b
Fix issues with javadocs.
...
PiperOrigin-RevId: 269825611
2019-10-03 15:50:23 -04:00
dniz
629f048ccd
Update ElevationOverlayProvider overlayView parameter to be @NonNull
...
PiperOrigin-RevId: 269364084
2019-10-03 15:50:23 -04:00
cketcham
599457f2c4
Update ShapeAppearanceModel javadoc to correctly specify that an instance is returned, not the builder.
...
PiperOrigin-RevId: 269363772
2019-10-03 15:50:23 -04:00
connieshi
9bb3b8fb17
Use CardView instead of MaterialCardView as the class name to so Talkback recognizes the item type.
...
PiperOrigin-RevId: 269333691
2019-10-03 15:50:23 -04:00
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