Material Design Team
2bbb47d48f
Recalculate bottom sheet half expanded offset when setHalfExpandedRatio() is called after
...
the bottom sheet is laid out.
PiperOrigin-RevId: 271985444
2019-10-01 04:05:57 -04:00
Material Design Team
fd13d16292
Support registering multiple BottomSheetCallbacks
...
PiperOrigin-RevId: 271650665
2019-10-01 03:59:15 -04:00
cketcham
cc40b5a134
Add missing attributes to public.xml for Slider
...
PiperOrigin-RevId: 271648920
2019-10-01 03:57:06 -04:00
cketcham
88535c8f22
Only set the Slider thumb drawable state if the drawable is stateful
...
PiperOrigin-RevId: 271617473
2019-09-27 15:00:03 -04:00
Daniel Frett
4bd83e5fc9
[TextInputLayout] run the captionViewToShow logic whenever there is a view
...
Resolves https://github.com/material-components/material-components-android/pull/528
GIT_ORIGIN_REV_ID=55964e5f7478903e634e41e223df0575ff57bf1d
PiperOrigin-RevId: 271616982
2019-09-27 14:59:41 -04:00
Material Design Team
5f017cd5cd
Migrate away from deprecated behavior annotation
...
PiperOrigin-RevId: 271616445
2019-09-27 14:59:16 -04:00
cketcham
fb4025aad4
Refactor to use Style directly for Paint in Slider
...
PiperOrigin-RevId: 271612458
2019-09-27 14:58:55 -04:00
afohrman
5592c1b74e
Optimize MaterialShapeDrawable's RectF usages.
...
PiperOrigin-RevId: 271588528
2019-09-27 14:06:30 -04:00
hunterstich
4f70ac8955
Update FloatingActionButton to implement the Shapeable interface.
...
PiperOrigin-RevId: 271566824
2019-09-27 14:06:05 -04:00
marianomartin
0f8fa7e6c9
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-09-27 14:05:20 -04:00
Material Design Team
08770723e2
Update BottomSheetBehavior documentation for accessibility.
...
PiperOrigin-RevId: 271443929
2019-09-27 14:04:58 -04:00
leticiars
544c2af103
Adding hintTextErrorColor color attribute to be used for the collapsed hint text color when an error is being displayed.
...
PiperOrigin-RevId: 271432476
2019-09-26 17:58:11 -04:00
cketcham
ab59d93064
Update corner size for builder to use floats
...
PiperOrigin-RevId: 271428842
2019-09-26 17:57:33 -04:00
leticiars
107294f810
Fix stroke not using stroke error color when in overflow state (noop).
...
PiperOrigin-RevId: 271406453
2019-09-26 17:57:07 -04:00
dniz
a6be8f7e5b
Update Primary and Surface ActionBar Theme Overlays to inherit from AppCompat ActionBar Theme Overlay
...
PiperOrigin-RevId: 271134096
2019-09-26 17:55:49 -04:00
connieshi
c1c55475f3
Suppress ClickableViewAccessibility lint error in Chip#onTouchEvent.
...
PiperOrigin-RevId: 271128148
2019-09-26 17:55:16 -04:00
isabellekim
3fba0eeade
Move material theme overlays into their own file.
...
PiperOrigin-RevId: 271127788
2019-09-26 17:54:53 -04:00
connieshi
230ed9263f
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-09-26 17:54:25 -04:00
Material Design Team
46366ad435
Automated g4 rollback of changelist 270969395
...
PiperOrigin-RevId: 271016488
2019-09-26 17:54:00 -04:00
isabellekim
2f740c73e3
Update Snackbar's application of backgroundTint so that it applies a tint on a colored background to keep the shadow.
...
PiperOrigin-RevId: 270970055
2019-09-26 17:53:38 -04:00
Material Design Team
81c967c6a1
Fix broken scrolling when content in the bottom sheet uses nestedScrollingEnabled="false"
...
PiperOrigin-RevId: 270969395
2019-09-26 17:53:08 -04:00
melaniegoetz
17e3e18edb
Automated g4 rollback of changelist 270730347
...
PiperOrigin-RevId: 270959699
2019-09-26 17:52:44 -04:00
melaniegoetz
fd56af53c7
Adjust BottomSheet peek height based on insets
...
PiperOrigin-RevId: 270730347
2019-09-24 12:22:28 -04:00
cketcham
cbfc677db4
Add nullability annotation to BottomSheetDialogFragment
...
This matches the method from AppCompatDialogFragment
PiperOrigin-RevId: 270345625
2019-09-24 12:22:10 -04:00
isabellekim
95af724ca4
Updates snackbar to support app:backgroundTint and app:backgroundTintMode.
...
Also adds ability to setBackgroundTintMode programmatically.
PiperOrigin-RevId: 270337384
2019-09-24 12:20:17 -04:00
Sam
a610215b77
[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-09-24 12:17:58 -04:00
leticiars
9ab640f83e
Adding null check for updateIconColorOnState method
...
PiperOrigin-RevId: 270319995
2019-09-24 12:17:11 -04:00
leticiars
b17d042f9a
Updating outlined text fields to use new colors for states a11y.
...
PiperOrigin-RevId: 270297081
2019-09-24 12:14:23 -04:00
leticiars
88d316e0f4
Adding boxStrokeErrorColor color attribute to be used for the outlined text field stroke color when an error is being displayed.
...
PiperOrigin-RevId: 270088868
2019-09-20 11:00:03 -04:00
cketcham
b3aec13c32
Fix nullable annotation for BottomSheetDialogFragment#getDialog()
...
PiperOrigin-RevId: 270061278
2019-09-20 10:59:01 -04:00
ldjesper
6e0307248e
Update renamed private String GRID_SELECTOR_KEY to renamed class (DateSelector) in MaterialDatePicker
...
PiperOrigin-RevId: 269875653
2019-09-20 10:57:25 -04:00
cketcham
f8fe052ed3
Add support for Slider thumb elevation
...
PiperOrigin-RevId: 269866946
2019-09-20 10:56:07 -04:00
ldjesper
ee891219d5
Change text scaling and landscape width for small screens.
...
PiperOrigin-RevId: 269862267
2019-09-20 10:45:32 -04:00
ldjesper
e2f7ee026e
Fix NPE when erasing text input box for SingleDateSelector
...
Resolves https://github.com/material-components/material-components-android/issues/590
PiperOrigin-RevId: 269852927
2019-09-18 14:42:45 -04:00
afohrman
f6a67eb9f6
Fix issues with javadocs.
...
PiperOrigin-RevId: 269825611
2019-09-18 14:24:31 -04:00
leticiars
6e5ddcfb0e
Adding support for prefix and suffix in text fields.
...
Prefix text can be set via the prefixText attribute or via the setPrefixText(CharSequence) method.
Similarly, suffix text can be set via the suffixText attribute or via setSuffixText(CharSequence)
PiperOrigin-RevId: 269799139
2019-09-18 14:21:37 -04:00
marianomartin
d3d8c0a9fb
Remove corner adjustment flag and code
...
PiperOrigin-RevId: 269652871
2019-09-18 14:20:44 -04:00
Material Design Team
6367566c46
Update HideBottomViewOnScrollBehavior to use non-deprecated versions of Behavior’s onStartNestedScroll and onNestedScroll.
...
PiperOrigin-RevId: 269610701
2019-09-18 14:20:03 -04:00
dniz
bcd8a55e30
Update ElevationOverlayProvider overlayView parameter to be @NonNull
...
PiperOrigin-RevId: 269364084
2019-09-18 14:16:49 -04:00
cketcham
d993425201
Update ShapeAppearanceModel javadoc to correctly specify that an instance is returned, not the builder.
...
PiperOrigin-RevId: 269363772
2019-09-18 14:16:09 -04:00
connieshi
b6885518a0
Use CardView instead of MaterialCardView as the class name to so Talkback recognizes the item type.
...
PiperOrigin-RevId: 269333691
2019-09-18 14:15:19 -04:00
Material Design Team
7ff6f6e1e2
Add a11y support to SwipeDismissBehavior
...
PiperOrigin-RevId: 268976540
2019-09-18 14:13:33 -04:00
cketcham
eab7b7bc1b
Update Slider thumb to use MaterialShapeDrawable
...
This will easily allow us to support elevation and potentially custom shapes in the future.
PiperOrigin-RevId: 268932921
2019-09-18 14:12:11 -04:00
connieshi
461e7f9be8
Remove obsolete todo.
...
PiperOrigin-RevId: 268932308
2019-09-18 14:07:33 -04:00
leticiars
9ada97c2be
Automated g4 rollback of changelist 268731150
...
PiperOrigin-RevId: 268920078
2019-09-18 14:06:57 -04:00
dniz
03b5cffbb7
Update naming of Snackbar gesture inset ignore flag
...
PiperOrigin-RevId: 268914646
2019-09-18 14:06:07 -04:00
cketcham
38e95a5f3c
Remove the gap between the thumb and track in disabled mode
...
PiperOrigin-RevId: 268905977
2019-09-18 14:04:28 -04:00
connieshi
a6106e12b2
When a chip's close icon is purely decorative (i.e. no onCloseIconClickLisetener is set), avoid setting custom accessibility delegate.
...
PiperOrigin-RevId: 268904579
2019-09-18 14:03:37 -04:00
leticiars
784fb9ba24
Fixing ExposedDropdownMenu crash when device is rotated.
...
Resolves https://github.com/material-components/material-components-android/issues/561
PiperOrigin-RevId: 268753819
2019-09-18 13:55:15 -04:00
leticiars
6f35a22359
Automated g4 rollback of changelist 268680301
...
PiperOrigin-RevId: 268740076
2019-09-18 13:53:59 -04:00