marianomartin
e56b141dd5
[MaterialButtonToggleGroup] SelectionRequired attribute doesn`t enforce checkedButtonId to be a valid id (returns -1)
...
Resolves https://github.com/material-components/material-components-android/issues/956
PiperOrigin-RevId: 292334820
2020-01-31 11:10:08 -05:00
cketcham
6e340c49d4
Fix BottomAppBarTopEdgeTreatment bug caused by large negative vertical offset
...
While some small negative values for vertical offset do work, this use case is currently not supported. Most negative values result in the cutout being drawn incorrectly. This also adds a new exception to help clarify the crash in the future.
Resolves https://github.com/material-components/material-components-android/issues/906
PiperOrigin-RevId: 292148159
2020-01-29 16:15:04 -05:00
cketcham
a6e28bef76
Add support for multiple Slider thumbs
...
Resolves https://github.com/material-components/material-components-android/issues/916
PiperOrigin-RevId: 292135289
2020-01-29 16:14:10 -05:00
leticiars
a040af5bd3
[TextInputLayout] Fixing vertical gravity set on edit text being ignored for the expanded hint.
...
Resolves https://github.com/material-components/material-components-android/issues/933
PiperOrigin-RevId: 292015744
2020-01-29 16:12:04 -05:00
haodong
bb34f717df
Refactor trackColor attribute into common resources.
...
PiperOrigin-RevId: 291983432
2020-01-29 15:32:01 -05:00
marianomartin
401b99e099
[Chip] Double emission on check state change when selectionRequired is used
...
Resolves https://github.com/material-components/material-components-android/issues/952
PiperOrigin-RevId: 291922419
2020-01-28 16:11:38 -05:00
leticiars
9d71db9717
Adding textInputLayoutFocusedRectEnabled attr to disable using the TextInputLayout's rect by default.
...
PiperOrigin-RevId: 291747634
2020-01-28 16:09:58 -05:00
marianomartin
20d2efed82
Change ShapeableImageView to use a Hardware layer
...
PiperOrigin-RevId: 291699732
2020-01-27 10:43:11 -05:00
marianomartin
39d49158c8
[ShapeableImageView] Re draw on invalidate if the drawable is animatable.
...
Resolves https://github.com/material-components/material-components-android/issues/890
PiperOrigin-RevId: 291142205
2020-01-23 08:28:19 -05:00
haodong
b1c4f539e1
Made LG devices exceptions for using date type of keyboard for date picker text input.
...
Resolves https://github.com/material-components/material-components-android/issues/901
- Check if the device is LG, and change the keyboard type if yes.
- Remove the exception for Samsung devices, they updated their date type keyboard with "." and "/".
PiperOrigin-RevId: 290753487
2020-01-21 09:13:23 -08:00
haodong
9f48006d62
[MaterialShapeDrawable] Fixed shadow paint not updating color while setting shadow color.
...
Resolves https://github.com/material-components/material-components-android/issues/909
PiperOrigin-RevId: 290750682
2020-01-21 09:11:11 -08:00
cketcham
0f18d9084c
Prevent setting a height less than requested by using Math.round()
...
PiperOrigin-RevId: 290707432
2020-01-21 08:40:35 -08:00
connieshi
bd7de3d412
Add null check in #animateViewIn to guard against the post runnable executing after the view has been destroyed.
...
Resolves https://github.com/material-components/material-components-android/issues/917
PiperOrigin-RevId: 290300667
2020-01-17 13:57:49 -05:00
marianomartin
3cd591fd71
Change OnTabSelectedListener back to extend BaseOnTabSelectedListener
...
This brings back binary compatibility with 1.0.0 and 1.1.0-RC.
The reason this broke was because members were removed from the OnTabSelectedListener superclass set.
Which is not supported, regardless of whether tab OnTabSelectedListener still kept the same members.
https://docs.oracle.com/javase/specs/jls/se7/html/jls-13.html#jls-13.4.4
Resolves https://github.com/material-components/material-components-android/issues/903 ?
PiperOrigin-RevId: 290152502
2020-01-17 13:06:04 -05:00
Material Design Team
dc4efe78d9
Make draggable true by default - so it will be true when using Empty Constructor as well
...
PiperOrigin-RevId: 290121017
2020-01-17 13:02:36 -05:00
connieshi
a15d3ea219
Update TabLayout so it takes into account TabGravity in MODE_SCROLLABLE.
...
Add TabGravity.GRAVITY_START to maintain existing (default) MODE_SCROLLABLE behavior.
MODE_SCROLLABLE currently supports GRAVITY_CENTER and GRAVITY_START
MODE_FIXED does not support GRAVITY_START.
PiperOrigin-RevId: 289910847
2020-01-15 14:25:50 -08:00
marianomartin
17912e0599
Bring back removed TabLayout method for compatibility
...
Resolves https://github.com/material-components/material-components-android/issues/903
We accidentally removed this since it wasn't in 1.0.0 and it was deprecated. It exists to keep compatibility with version 27.0 of the library.
PiperOrigin-RevId: 289832106
2020-01-15 07:42:50 -08:00
Material Design Team
0a03911f89
Add more a11y support to AppBarLayout's BaseBehavior.
...
PiperOrigin-RevId: 289692654
2020-01-14 15:05:59 -08:00
zkovar
0e6c21d3c0
[MaterialDatePicker] Ability to Start Picker in MaterialTextInputPicker Mode
...
Resolves https://github.com/material-components/material-components-android/pull/867
Resolves https://github.com/material-components/material-components-android/issues/865
GIT_ORIGIN_REV_ID=de3f50710c06d17331d366eb9b4d240ec205a1f8
Co-authored-by: pekingme <pekingme@gmail.com>
PiperOrigin-RevId: 289676795
2020-01-14 11:00:51 -08:00
cketcham
9e4ff3009f
Refactor handling of the thumb position to prepare for multiple thumb support
...
PiperOrigin-RevId: 289482135
2020-01-13 15:05:21 -08:00
marianomartin
36426fc74c
[ShapeableImageView] Support more types of Drawables
...
Resolves https://github.com/material-components/material-components-android/issues/890
Resolves https://github.com/material-components/material-components-android/issues/842
PiperOrigin-RevId: 289167223
2020-01-10 16:47:00 -08:00
leticiars
237f0f3c56
Adding nullness annotations and fixing some other lint issues.
...
PiperOrigin-RevId: 289110313
2020-01-10 10:23:03 -08:00
leticiars
338d32684f
[TextInputLayout] Fixing label misalignment in legacy text fields when there is prefix/suffix
...
Resolves https://github.com/material-components/material-components-android/issues/700
PiperOrigin-RevId: 289080344
2020-01-10 10:18:57 -08:00
Nick Rout
94cd734a51
[FloatingActionButton] Add support for enabled/disabled state
...
Resolves https://github.com/material-components/material-components-android/pull/783
GIT_ORIGIN_REV_ID=76d076366145fbaa9ca01af6a6d182491d9a4659
PiperOrigin-RevId: 289017230
2020-01-10 09:08:55 -08:00
haodong
fa4dc3d038
Fixed crash with NullPointerException when set value before laid out in Slider.
...
PiperOrigin-RevId: 288945151
2020-01-10 09:07:35 -08:00
Material Design Team
253cdc2114
Add CollectionInfos and CollectionItemInfos to ChipGroup and Chip for accessibility.
...
PiperOrigin-RevId: 288944549
2020-01-10 09:05:36 -08:00
leticiars
16024fd913
[TextInputLayout] Fixing disabled color set for android:textColorHint not being applied on the label.
...
Before, the disabled box stroke color was being used.
Resolves https://github.com/material-components/material-components-android/issues/789
PiperOrigin-RevId: 288887455
2020-01-09 12:03:11 -08:00
Ikebe, Ryohji
07931b65ba
[TabLayoutMediator] Prevent crash autoRefresh disabled mediator
...
Resolves https://github.com/material-components/material-components-android/pull/877
GIT_ORIGIN_REV_ID=db2949c4ed5358867e83b3e1cabad00e574ba5ba
PiperOrigin-RevId: 288822885
2020-01-09 12:00:22 -08:00
ethanhsuhsu
6c1b620565
[BottomSheetDialog] Removed existing content during each setContentView
...
Resolves https://github.com/material-components/material-components-android/pull/873
Resolves https://github.com/material-components/material-components-android/issues/869
GIT_ORIGIN_REV_ID=7528e645a033c00dee0eac03237eb6d87aa9d002
PiperOrigin-RevId: 288762766
2020-01-08 14:10:39 -08:00
Seanghay
63c71bd2cb
[FloatingActionButton] Add reference format to attributes
...
Resolves https://github.com/material-components/material-components-android/pull/878
GIT_ORIGIN_REV_ID=844441afe2f0ffd43930d61cc604edaaf43a18b9
PiperOrigin-RevId: 288752495
2020-01-08 14:10:11 -08:00
Material Design Team
ba8e18ea62
Fix RTL padding issue on Chips.
...
PiperOrigin-RevId: 288737367
2020-01-08 12:11:28 -08:00
Anoop
60483b53e9
[TextInputEditText] meizu to manufacture utils
...
Resolves https://github.com/material-components/material-components-android/pull/884
GIT_ORIGIN_REV_ID=24aef1fe592b2ce08c8a9ad7e33e396cc4eb6dd0
Co-authored-by: pekingme <pekingme@gmail.com>
PiperOrigin-RevId: 288726292
2020-01-08 12:11:02 -08:00
Material Design Team
5b4ea9c966
[BottomSheetBehavior] Add an ability to prevent dragging to expand/collapse the BottomSheet
...
PiperOrigin-RevId: 288710272
2020-01-08 12:10:25 -08:00
haodong
9bbcd2d7ae
Fixed no OnChangeListener fires when value changed with single click.
...
Fixed set same values triggering listener.
Resolves https://github.com/material-components/material-components-android/issues/716
Resolves https://github.com/material-components/material-components-android/issues/853
PiperOrigin-RevId: 288608132
2020-01-08 11:57:33 -08:00
cketcham
7691797c2f
Allow clients to set their own OnFocusChangeListener on Slider
...
Fixes https://github.com/material-components/material-components-android/issues/844
PiperOrigin-RevId: 288403285
2020-01-07 13:34:44 -05:00
leticiars
ffcb46b8df
[TextInputLayout] Fixing expanded label not updating if edit text's size is changed programmatically.
...
PiperOrigin-RevId: 288289384
2020-01-06 14:41:59 -05:00
leticiars
e624c0201a
[TextInputLayout] Fixing input text not being disguised by default when setting the end icon mode to password_toggle.
...
The input type of the edit text should still be set before calling setEndIconMode(END_ICON_PASSWORD_TOGGLE)
Resolves https://github.com/material-components/material-components-android/issues/491
PiperOrigin-RevId: 287573583
2019-12-30 14:21:42 -05:00
ruben
cde09d4b4e
[Slider] Add missing functionality from SeekBar regarding touch events and value changes
...
Resolves https://github.com/material-components/material-components-android/pull/831
GIT_ORIGIN_REV_ID=70dd0a10ef204837b01ed9593cfdd9bcf9137228
Co-authored-by: cketcham <cketcham@gmail.com>
PiperOrigin-RevId: 287545665
2019-12-30 14:15:50 -05:00
cketcham
a011ace28f
Remove ticksCoordinates from SliderState
...
There's no point in caching ticksCoordinates since it will have to be recalculated based on the new width once it's laid out again.
Resolves https://github.com/material-components/material-components-android/issues/793
PiperOrigin-RevId: 287363665
2019-12-30 14:14:55 -05:00
cketcham
2098c0b460
Update Tooltip dimensions to match spec
...
PiperOrigin-RevId: 287249126
2019-12-30 14:13:55 -05:00
cketcham
9ae1494597
Add option to hide the Slider's label
...
This creates 3 options, to have the label floating, within the bounds of the view, or not shown.
Resolves https://github.com/material-components/material-components-android/issues/703
PiperOrigin-RevId: 287244827
2019-12-30 13:31:52 -05:00
Material Design Team
5de9f01ade
Move a11y delegate code from BottomNavigationView and TabLayout to onInitializeA11yNodeInfo.
...
PiperOrigin-RevId: 286929652
2019-12-23 15:44:28 -05:00
Material Design Team
4389a18128
Add CollectionInfos and CollectionItemInfos to MaterialButtonToggleGroup and MaterialButton for accessibility.
...
PiperOrigin-RevId: 286922716
2019-12-23 15:43:46 -05:00
cketcham
354edd09f4
Rename method in Slider
...
PiperOrigin-RevId: 286912170
2019-12-23 15:43:11 -05:00
leticiars
bf6ece0489
[TextInputLayout] Fixing outlined text fields not taking into account top padding for inseting the cutout properly.
...
Resolves https://github.com/material-components/material-components-android/issues/597
PiperOrigin-RevId: 286887568
2019-12-23 15:39:44 -05:00
cketcham
df61bff112
Fixed halo rendering bug for Slider
...
Using a hardware layer was causing problems in some versions of Android when drawing the halo ripple. Hardware layer really only needs to be used when the slider is disabled.
PiperOrigin-RevId: 286640042
2019-12-21 08:51:03 -05:00
cketcham
e38d260d69
Prevent unnecessary invalidation for Slider if the values haven't changed
...
PiperOrigin-RevId: 286632473
2019-12-21 08:50:33 -05:00
cketcham
5f631d48f0
Fix logic for when to draw Slider's compat halo
...
PiperOrigin-RevId: 286629247
2019-12-21 08:50:09 -05:00
cketcham
d8641182f9
Remove call to Slider's requestDisallowInterceptTouchEvent(false) in ACTION_UP
...
On the start of a new touch event on the parent, this will be reset.
PiperOrigin-RevId: 286623951
2019-12-21 08:49:30 -05:00
leticiars
8ed0ab7964
Fixing crash happening when password toggle is clicked without the edit text having focus in TalkBack mode.
...
PiperOrigin-RevId: 286590576
2019-12-21 08:49:03 -05:00