isabellekim
1f9de68025
[All] Add support for materialThemeOverlay
...
Resolves https://github.com/material-components/material-components-android/pull/948
GIT_ORIGIN_REV_ID=5a8bb35a56c1b813df47d964de8482a26e0da66d
PiperOrigin-RevId: 293839172
2020-02-10 09:55:19 -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
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
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
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
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
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
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
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
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
afohrman
201ec6241c
Add support for placeholder text in TextInputLayout.
...
This is the initial implementation of placeholder text; it does not contain motion. At this stage, TextInputLayout sets the placeholder text visibility based on whether or not it should show.
PiperOrigin-RevId: 284808331
2019-12-11 17:06:57 -05:00
leticiars
eabbfa2aa5
Limiting helper/error view width so that counter view doesn't get pushed out.
...
Resolves: https://github.com/material-components/material-components-android/issues/689
PiperOrigin-RevId: 284594896
2019-12-10 07:21:56 -05:00
leticiars
b78be8d866
[TextInputLayout] Fixing error message getting announce twice in Q
...
PiperOrigin-RevId: 283972549
2019-12-05 15:15:32 -05:00
leticiars
6efedee757
Adding onInitializeAccessibilityNodeInfo override in TextInputEditText.
...
In APIs < 23 some things set in TextInputLayout's AccessibilityDelegate get overwritten, so announcements are not as expected.
PiperOrigin-RevId: 283396918
2019-12-03 17:04:54 -05:00
leticiars
11c57abbd6
[TextInputLayout] When error message is showing, announce it in place of the helper text when a text field is focused on.
...
PiperOrigin-RevId: 282801995
2019-12-02 17:33:35 -05:00
leticiars
6849bae3e9
[TextInputLayout] Fixing duplicate announcement when character limit is exceeded and adding announcement for when the limit is reached.
...
PiperOrigin-RevId: 282787253
2019-12-02 17:32:42 -05:00
leticiars
29f3d05fa8
Adding helper text to the hint node so that TalkBack announces it when a text field is selected.
...
This provides more context for the user since the helper text is located below the text field (which is still focusable via TalkBack for now).
PiperOrigin-RevId: 282560641
2019-12-02 17:26:39 -05:00
leticiars
d2870fbb3f
Fixing a11y warning when AutoCompleteTextView inside a TextInputLayout doesn't have a hint.
...
The hint should be retrieved from the text input layout as it is what takes care of the hint behavior.
PiperOrigin-RevId: 280526998
2019-11-15 15:12:41 -05:00
leticiars
aeb9eea9d8
Allow a content description to be set on a text field error view. This is useful for when the error message has special characters that TalkBack cannot read.
...
PiperOrigin-RevId: 280508115
2019-11-15 15:12:03 -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
Mahdi Hosseinzadeh
d0ddeb05c3
[TextField] Fix documentation errors
...
Resolves https://github.com/material-components/material-components-android/pull/749
GIT_ORIGIN_REV_ID=b019c4846473655df0f3ca9a2b9ef8a4fbf66334
PiperOrigin-RevId: 279996234
2019-11-12 16:23:14 -05:00
leticiars
816f080be2
Fixing helper text disappearing when setError(null) is called and the error is already null.
...
Resolves https://github.com/material-components/material-components-android/issues/525
Resolves https://github.com/material-components/material-components-android/pull/737
PiperOrigin-RevId: 279121898
2019-11-07 16:11:49 -05:00
leticiars
4bff089310
Making sure hoveredFilledBackgroundColor defaults to default color if not set on a stateful CSL instead of to the disabled color.
...
PiperOrigin-RevId: 279120861
2019-11-07 16:11:23 -05:00
Mattia
d29daab572
[TextInputLayout] focusedStrokeColor should take into account the enabled color
...
Resolves https://github.com/material-components/material-components-android/pull/734
GIT_ORIGIN_REV_ID=36549f1519805be416aaf75cbb67be948c4b02e7
PiperOrigin-RevId: 278910639
2019-11-07 16:07:36 -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
leticiars
61c00d746e
Updating boxBackgroundColor filled text fields attr documentation to specify that default colors are used for hover and disabled states when a non stateful resource is specified.
...
PiperOrigin-RevId: 277983799
2019-11-04 13:04:16 -05:00
nkotula
8ca8e1bbdd
[TextInputLayout] Add support for focused background color
...
Resolves https://github.com/material-components/material-components-android/pull/724
GIT_ORIGIN_REV_ID=8b272d736167cd0bff236b47049e247e3ec383a5
PiperOrigin-RevId: 277959398
2019-11-04 13:03:21 -05:00
haodong
7708ca4db1
Automated g4 rollback of changelist 277103254
...
PiperOrigin-RevId: 277545348
2019-11-01 13:28:40 -07:00
haodong
5db6b5f2f8
Automated g4 rollback of changelist 275944003
...
PiperOrigin-RevId: 277103254
2019-11-01 13:28:40 -07:00
leticiars
5a57937111
Automated g4 rollback of changelist 276353549
...
PiperOrigin-RevId: 276701861
2019-11-01 13:28:40 -07:00
leticiars
3f170183cb
Automated g4 rollback of changelist 276320000
...
PiperOrigin-RevId: 276353549
2019-11-01 13:28:40 -07:00
leticiars
625f608012
Adding android:enabled attribute to the TextInputLayout.
...
Resolves https://github.com/material-components/material-components-android/issues/646
PiperOrigin-RevId: 276320000
2019-11-01 13:28:40 -07:00
leticiars
d0307dc974
Error icon should only be visible if error is enabled.
...
Resolves https://github.com/material-components/material-components-android/issues/587
PiperOrigin-RevId: 276153474
2019-11-01 13:28:40 -07:00
haodong
8c8eaac2b1
Automated g4 rollback of changelist 275859720
...
PiperOrigin-RevId: 275944003
2019-11-01 13:28:40 -07:00
haodong
69e399f9c4
Updated TextInputLayout to support empty string as error message.
...
PiperOrigin-RevId: 275859720
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
leticiars
3a21a881d0
Updating filled text fields to use new colors for states a11y.
...
PiperOrigin-RevId: 275024556
2019-10-21 10:23:14 -04:00
leticiars
a58a82354e
Fixing outlined error color when focused.
...
PiperOrigin-RevId: 273742930
2019-10-10 15:51:01 -04:00
leticiars
dc88b3e45f
Adding setBoxStrokeColorStateList method so that the outlined text field stroke color accepts a color state list.
...
Resolves https://github.com/material-components/material-components-android/issues/593
PiperOrigin-RevId: 273577122
2019-10-10 15:50:02 -04:00
ldjesper
7dc56dfcdd
Simplify TextField drawable resources
...
https://github.com/material-components/material-components-android/issues/611
PiperOrigin-RevId: 273544807
2019-10-10 15:48:39 -04:00
cketcham
0547d2a06b
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
2019-10-04 15:23:16 -04:00
leticiars
c74120d3d7
Automated g4 rollback of changelist 271432476
...
PiperOrigin-RevId: 272057811
2019-10-01 04:10:55 -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
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
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
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