hunterstich
d6501c97bc
[Slider] Fix attach/detach behavior when Slider is added in an overlay as part of a Transition.
...
Resolves https://github.com/material-components/material-components-android/issues/1195
A Visibility transition will add Slider to an overlay and then call onAttachToWindow/onDetachFromWindow which looks for an android.R.id.content view, which doen't exist, getting stuck in a loop. This adds an exit strategy for android.R.id.content not being found and fixes Slider in Visibility transitions.
PiperOrigin-RevId: 305886706
2020-04-13 10:21:36 -07:00
Material Design Team
6ad240dfc0
Pass the item ID through to the item view which is created by the RecyclerView if the ID is greater than zero.
...
PiperOrigin-RevId: 298611118
2020-03-05 13:00:06 -08:00
Material Design Team
4f21f83708
Automated g4 rollback of changelist 296479321
...
PiperOrigin-RevId: 296521978
2020-02-24 18:26:36 -05:00
Material Design Team
c5908974c6
Pass the item ID through to the item view which is created by the RecyclerView.
...
PiperOrigin-RevId: 296479321
2020-02-24 18:25:08 -05:00
marianomartin
83e4e47d22
Initial support for Multiline CollapsingToolbarLayout
...
This cl adds the capabilities to set multiline on CollapsingToolbarLayout while keeping single line toolbars unchanged.
Co-Authored-By: johan12345 <johan.forstner@gmail.com>
PiperOrigin-RevId: 294256516
2020-02-10 14:32:15 -05:00
haodong
d6b2da8b50
[DatePicker] Added workaround for Samsung and LG devices to show URL keyboard when enter date in text.
...
PiperOrigin-RevId: 294219052
2020-02-10 14:31:45 -05:00
connieshi
4ffc1efebc
Add comment explaining why certain attributes should remain private.
...
PiperOrigin-RevId: 293816051
2020-02-10 09:34:59 -05:00
connieshi
cd7d38854a
Add private attributes that should be public to public.xml.
...
PiperOrigin-RevId: 293608989
2020-02-06 17:25:29 -05:00
marianomartin
50b020aec7
Resubmit Modify CollapsingTextHelper to use a StaticLayout instead of canvas.drawText.
...
PiperOrigin-RevId: 293443677
2020-02-05 17:30:20 -05:00
marianomartin
1673924a23
Automated g4 rollback of changelist 293151496
...
PiperOrigin-RevId: 293184366
2020-02-04 17:33:05 -05:00
marianomartin
7822b6d05e
Modify CollapsingTextHelper to use a StaticLayout instead of canvas.drawText.
...
This will allow to support multiple lines.
PiperOrigin-RevId: 293151496
2020-02-04 17:32:07 -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
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
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
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
marianomartin
d49fff38ef
Add a StaticLayoutCompat class that supports Max Lines
...
PiperOrigin-RevId: 286223820
2019-12-18 15:56:04 -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
7d4b472262
Add copy of ViewOverlay compatibility until it is included in androidx
...
PiperOrigin-RevId: 283403884
2019-12-03 17:16:13 -05:00
leticiars
20f113212d
[TextInputLayout] Adding support for the collapsed label position to be determined via the edit text gravity, such as center_horizontal.
...
Resolves https://github.com/material-components/material-components-android/pull/311
Resolves https://github.com/material-components/material-components-android/issues/609
PiperOrigin-RevId: 279998938
2019-11-12 16:23:41 -05:00
ldjesper
62a2164f18
Include separator characters for Samsung devices in MaterialDatePicker
...
Resolves https://github.com/material-components/material-components-android/issues/682
PiperOrigin-RevId: 279146671
2019-11-07 16:12:20 -05:00
leticiars
27f7f4c6ba
Fixing text field icons that are not clickable having ripple effect when text field is pressed.
...
Non clickable ImageViews inherit pressed state of parent views, so icons appeared as pressed even if they were not clickable/focusable.
PiperOrigin-RevId: 278381886
2019-11-04 13:05:10 -05:00
cketcham
b9f8ee94b3
Adding option to enable and disable bottom inset padding for BottomAppBar
...
Resolves https://github.com/material-components/material-components-android/issues/580
This adds the paddingBottomSystemWindowInsets attribute which is a databinding extension that will probably be part of https://github.com/chrisbanes/insetter
PiperOrigin-RevId: 277139485
2019-11-01 13:28:40 -07:00
marianomartin
115313c0c0
Expose a class for themeoverlay in style
...
This moves functionality from ThemeEnforcement into a stand alone class.
Resolves https://github.com/material-components/material-components-android/issues/665
PiperOrigin-RevId: 275481343
2019-10-21 10:24:19 -04:00
marianomartin
0d4515cb46
Internal cleanup
...
PiperOrigin-RevId: 265971745
2019-08-29 14:59:20 -04:00
cketcham
81e708e1bb
Add @NonNull and @Nullable annotations
...
PiperOrigin-RevId: 264745164
2019-08-26 11:19:28 -04:00
cketcham
a1a763dde9
Fixing NavigationView scrims
...
NavigationView tries to determine if it is behind the status bar by checking if it's at the top of the screen. If it is and there are insets, it will draw a scrim. It also tries to determine if it is under the system nav. If it is and the system nav isn't fully transparent, it will also draw a scrim.
PiperOrigin-RevId: 264167166
2019-08-20 11:13:04 -04:00
cketcham
96117da2db
Remove unnecessary @hide
...
PiperOrigin-RevId: 261971189
2019-08-16 15:26:29 -04:00
cketcham
234aa8535c
Fix scrim drawing behind NavigationView when used in a BottomDrawer for full screen activities
...
PiperOrigin-RevId: 261699505
2019-08-06 14:27:11 -04:00
leticiars
6a88f2b7d7
Adding option to set TextInputLayout icons to be not checkable.
...
Also updating clear text end icon to be not checkable, so that screen readers don't announce the icon's checked state as it's not relevant (differently from the password toggle icon, for example).
PiperOrigin-RevId: 259532643
2019-07-23 11:14:44 -04:00
dniz
0512f776c5
Remove sub-package AndroidManifest.xml files from lib directory
...
PiperOrigin-RevId: 258390736
2019-07-16 13:18:32 -04:00
isabellekim
a628bf516b
Revert the library to compile with Java 7: revert lambdas, add necessary casts, and make some variables final.
...
Continue compile shrine demo, catalog, and tests with Java 8.
PiperOrigin-RevId: 257874888
2019-07-15 19:19:23 -04:00
connieshi
6589e54a47
Publicly expose a hidden setter (ChipGroup#setSingleLine) inherited from a restricted parent class (FlowLayout).
...
PiperOrigin-RevId: 257046797
2019-07-09 12:59:59 -04:00
marianomartin
a648bac7b2
Merge DrawableUtils classes
...
PiperOrigin-RevId: 257022779
2019-07-09 12:56:12 -04:00
marianomartin
19aeb9b7a2
Delegate overscrollmode in navigation view to inflated MenuView
...
PiperOrigin-RevId: 256988688
2019-07-09 12:54:18 -04:00
dniz
5df3bebd63
Update elevation overlays to be based absolute elevation, factoring in the elevation of all parent views
...
Will follow-up with TabLayout absolute elevation separately
Resolves https://github.com/material-components/material-components-android/issues/381
PiperOrigin-RevId: 255404830
2019-07-03 13:55:49 -04:00
marianomartin
367b295624
Internal cleanup
...
PiperOrigin-RevId: 254414602
2019-06-24 17:12:42 -04:00
cketcham
8a2e358f1f
Fix issue with insets being overwritten by providing a copy
...
PiperOrigin-RevId: 253785920
2019-06-18 13:53:14 -04:00
marianomartin
b9147d4f2d
Remove some lint warnings from baseline
...
PiperOrigin-RevId: 253036361
2019-06-18 13:24:50 -04:00
cketcham
bff75f2d3e
Update to lamdas
...
PiperOrigin-RevId: 252846439
2019-06-18 13:21:02 -04:00
marianomartin
5a5d311a36
Check more lint warnings, show warnings as errors.
...
PiperOrigin-RevId: 252822573
2019-06-18 13:20:15 -04:00
connieshi
ccc48904e5
Add BadgeDrawable constructor that takes a xml resource.
...
PiperOrigin-RevId: 252709395
2019-06-18 13:15:07 -04:00
cketcham
1aa7125398
Update BottomAppBar to respect bottom system insets
...
PiperOrigin-RevId: 252394398
2019-06-18 11:49:00 -04:00
dniz
2ab5bdbf29
Date Picker text field toggle
...
PiperOrigin-RevId: 251443135
2019-06-10 08:45:32 -07:00
dniz
63c5a54798
Update CheckableImageButton to save instance state
...
PiperOrigin-RevId: 250929386
2019-06-10 08:23:54 -07:00
connieshi
7a4ecb0392
Update TextDrawableHelper's constructor to take a delegate.
...
Update ChipDrawable and BadgeDrwable to pass a delegate when they instantiate TextDrawbleHelper.
PiperOrigin-RevId: 245469285
2019-04-29 15:56:31 -07:00
dniz
058ac81494
Add enforceMaterialTheme attr to public.txt
...
PiperOrigin-RevId: 245308588
2019-04-29 15:46:51 -07:00
dniz
1f244318d8
Add @hide to all @RestrictTo annotations that are missing it
...
PiperOrigin-RevId: 243646339
2019-04-19 16:29:30 -04:00
Material Design Team
6096d60959
Roll Forward of CL 242858439
...
PiperOrigin-RevId: 243197143
2019-04-19 15:48:51 -04:00
Material Design Team
3666e15298
Automated g4 rollback of changelist 242858439
...
PiperOrigin-RevId: 242907738
2019-04-19 15:30:07 -04:00