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
dniz
d72f3bc7d0
Remove log line from Chip
...
PiperOrigin-RevId: 286572627
2019-12-21 08:48:40 -05:00
Material Design Team
67fc0c9ff8
Allow collapsed bottom sheet to settle to half expanded state on dragging up.
...
PiperOrigin-RevId: 286554369
2019-12-21 08:48:14 -05:00
cketcham
3e212efdc2
Add getters and setters for colors for Slider
...
Resolves http://github.com/material-components/material-components-android/issues/770
PiperOrigin-RevId: 286472940
2019-12-21 08:47:32 -05:00
ruben
a7da96fac0
[Slider] Fixed behaviour when Slider is in a scrolling container
...
Resolves https://github.com/material-components/material-components-android/pull/833
GIT_ORIGIN_REV_ID=86b976f757fb8354ffe502c5acc32b6954890bb9
PiperOrigin-RevId: 286431744
2019-12-19 15:49:27 -05:00
leticiars
2084fd3f70
[Text Fields] Pan window so that keyboard doesn't hide helper/error views.
...
It doesn't pan if the user can already scroll (for example if it's in a scroll view).
PiperOrigin-RevId: 286424421
2019-12-19 15:47:57 -05:00
connieshi
a3204758f9
Fix chip text mis-alignment when its width is less than the minimum recommended touch target width.
...
Resolves https://github.com/material-components/material-components-android/issues/800
PiperOrigin-RevId: 286421752
2019-12-19 15:46:43 -05:00
Material Design Team
6405635df4
Handle horizontal system insets for BottomAppBar.
...
Previously only the bottom inset (navigation bar) would add extra padding to the BottomAppBar which avoided overlapping with the bottom inset when drawing edge-to-edge. A problem arises if the device is rotated horizontally. The FAB (or sometimes the ActionMenuView in RtL layouts) would overlap with the right inset, making usage impossible.
This CL adjusts the FAB and ActionMenuView X translations when necessary to avoid the horizontal system insets. Two new stylable attributes have been added to enable/disable this behavior, analogous to the existing attribute for bottom padding.
PiperOrigin-RevId: 286419669
2019-12-19 15:45:44 -05:00
johan12345
8dd8acecd9
Mutate gravity horizontal value on setExpandedTextGravity and setCollapsedTextGravity, so the code can assume they are set.
...
PiperOrigin-RevId: 286392235
2019-12-19 15:41:45 -05:00
cketcham
b2deaa3f22
Update the radius of the Slider RippleDrawable
...
PiperOrigin-RevId: 286239127
2019-12-18 15:56:40 -05:00
marianomartin
d49fff38ef
Add a StaticLayoutCompat class that supports Max Lines
...
PiperOrigin-RevId: 286223820
2019-12-18 15:56:04 -05:00
cketcham
dc17035a8b
Fix height of Slider when floating label is false
...
PiperOrigin-RevId: 286201599
2019-12-18 15:55:40 -05:00
dniz
4e0a016d07
Update MaterialDatePicker to read colorSurface from correct context
...
Fixes issue where colorSurface from materialCalendarTheme is ignored
Resolves https://github.com/material-components/material-components-android/issues/838
PiperOrigin-RevId: 286194512
2019-12-18 15:55:09 -05:00
cketcham
f28cc095a7
Reorganized and updated comments in Slider
...
PiperOrigin-RevId: 286194091
2019-12-18 15:54:30 -05:00
dniz
2059499085
Fix AppBarLayout statusBarForeground issue where status bar drawable is drawn behind content
...
Resolves https://github.com/material-components/material-components-android/issues/824
PiperOrigin-RevId: 285981837
2019-12-17 17:07:12 -05:00
cketcham
921d392602
Rename slider tick and track color attributes to keep them together when sorted alphabetically
...
PiperOrigin-RevId: 285972204
2019-12-17 17:06:10 -05:00
cketcham
1723dd4580
Recaulculate Slider ticks when the step size changes
...
PiperOrigin-RevId: 285968387
2019-12-17 17:05:44 -05:00
leticiars
9dcb12169f
[TextInputLayout] Fixing cutout not working with CENTER_HORIZONTAL.
...
Resolves https://github.com/material-components/material-components-android/issues/822
PiperOrigin-RevId: 285781713
2019-12-16 16:01:50 -05:00
cketcham
b1816e118b
Draw the halo color instead of the thumb color for the compat halo for Slider
...
PiperOrigin-RevId: 285489212
2019-12-16 16:01:03 -05:00
cketcham
6adbcc2777
Rename Slider forceDrawCompatShadow to be forceDrawCompatHalo
...
PiperOrigin-RevId: 285442759
2019-12-16 16:00:24 -05:00