Material Design Team
2d18c612d6
Expand TLM to TabLayoutMediator in Javadoc
...
This makes it consistent with the rest of the references in the Javadoc.
PiperOrigin-RevId: 277090650
(cherry picked from commit de92a9fa3b9e0fb2415f70db8d8a3fbed1b6ac06)
2019-11-07 10:20:56 -05:00
marianomartin
8e923bdb65
[MaterialButtonToggleGroup] Fix corners after changing view visibility
...
People might want to set some of the buttons to GONE, this cl makes sure
the shape appearances remain coherent after doing so dynamically.
Resolves https://github.com/material-components/material-components-android/issues/693
PiperOrigin-RevId: 276508915
(cherry picked from commit 9fc13777550b4378a48aea22f46b7656805a20c8)
2019-11-07 10:20:07 -05:00
marianomartin
beb547b63e
Support orientation VERTICAL in MaterialButtonToggleGroup
...
Resolves https://github.com/material-components/material-components-android/issues/476
PiperOrigin-RevId: 273514626
(cherry picked from commit 24ab59af6c85b313519a14c04ad65f0ee15fb53f)
2019-11-07 10:19:56 -05:00
leticiars
195b176cd9
Error icon should only be visible if error is enabled.
...
Resolves https://github.com/material-components/material-components-android/issues/587
PiperOrigin-RevId: 276153474
(cherry picked from commit d0307dc9749c3f96043d1f21aea51ed2a0f19a36)
2019-11-07 10:12:05 -05:00
cketcham
8d8a7a7e8e
Fix FAB placement relative to the BottomAppBar when system insets change
...
PiperOrigin-RevId: 274158808
(cherry picked from commit 10c0f629724a5e4f529abb2432eead3a85a1cf3d)
2019-11-07 10:04:59 -05:00
ldjesper
b06130ee17
Sentence case all non-titles in MaterialDatePicker
...
PiperOrigin-RevId: 273592300
(cherry picked from commit 9cd22eb30a37881b329b9edc56e71a2a5fd2717d)
2019-11-06 11:07:10 -05:00
marianomartin
6f429e7b65
[NavigationView] Logic error when drawing nav bar scrim
...
Resolves https://github.com/material-components/material-components-android/issues/629
PiperOrigin-RevId: 273365055
(cherry picked from commit f71d80a96016c040f16ca6d3a5782927a51f7c0b)
2019-11-06 10:58:33 -05:00
dniz
75e20b78fa
Update Snackbar to respect left/right system window insets
...
PiperOrigin-RevId: 272667571
(cherry picked from commit 0c8c6f6249839a19165209c0634da143c862cb37)
2019-11-06 10:56:16 -05:00
marianomartin
410bc07d64
Change MaterialButtonToggleGroup to extend LinearLayout
...
PiperOrigin-RevId: 272989081
(cherry picked from commit a405dd9664731e128323595e2934827f838d2e9f)
2019-10-04 22:25:34 -04:00
dniz
c06305995f
Fix MaterialShapeDrawable stroke corner bug
...
PiperOrigin-RevId: 272977992
(cherry picked from commit ab54c23e9bf110395eeb3a7b7447aaae635fc18b)
2019-10-04 22:25:34 -04:00
cketcham
a0547c6362
Rename setCornerRadius to setAllCornerSizes
...
PiperOrigin-RevId: 272959729
(cherry picked from commit 294f12498dd5f244754875e3c0b5b11bbf859ea4)
2019-10-04 22:25:08 -04:00
ldjesper
6f653a5af1
Remove deprecated method setOnTabSelectedListener
...
PiperOrigin-RevId: 272946975
(cherry picked from commit a2434cd73855ccf7adc33bd4613e578b97e87d68)
2019-10-04 16:46:31 -04:00
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