Material Design Team
fc1208f4a4
[TextInputLayout] Allow hint text set in TextInputLayout to be passed on to the Autofill service
...
Resolves https://github.com/material-components/material-components-android/issues/1412
PiperOrigin-RevId: 330780010
2020-09-10 11:13:38 -04:00
Gabriele Mariotti
076ff69343
[TextInputLayout] Added hintText, helperText, placeholderText to restoreInstanceState
...
Resolves https://github.com/material-components/material-components-android/pull/1629
Resolves https://github.com/material-components/material-components-android/issues/1384
GIT_ORIGIN_REV_ID=3c3ac47f054e7c1f8ae7b7459337f094bfdbe56a
PiperOrigin-RevId: 329741165
2020-09-09 11:21:42 -04:00
momt99
ee93fc15c4
[TextInputLayout] Added id for errorIconView
...
Resolves https://github.com/material-components/material-components-android/pull/1624
Resolves https://github.com/material-components/material-components-android/issues/1623
GIT_ORIGIN_REV_ID=acf854dc995d734383ed25689b8efd7606f75537
PiperOrigin-RevId: 327673226
2020-08-20 16:48:23 -04:00
leticiars
bc4c6e47ae
[TextFields] Adjusted label position and edit text padding of filled text field for large font support. Also removed margin of icons when font is large.
...
PiperOrigin-RevId: 326486771
2020-08-13 16:50:06 -04:00
Gabriele Mariotti
fcea6e8ab2
[TextInputLayout] Added method to set hint with a String resource
...
Resolves https://github.com/material-components/material-components-android/issues/959
Resolves https://github.com/material-components/material-components-android/pull/1598
GIT_ORIGIN_REV_ID=c156ad372ca4055f70a7021db89d91b915db8b4c
PiperOrigin-RevId: 326249688
2020-08-12 14:19:57 -04:00
leticiars
1f8e76b3a1
[TextInputLayout] Fixed helper text position for large font sizes.
...
PiperOrigin-RevId: 325521228
2020-08-10 13:18:03 -04:00
dniz
b0240d9a77
[Resources] Fixed the types of some public attrs
...
Resolves https://github.com/material-components/material-components-android/issues/1560
PiperOrigin-RevId: 325010287
2020-08-05 10:59:36 -04:00
leticiars
be8fc51596
[ExposedDropdownMenu][a11y] Fixed dropdown list not focusing for editable dropdown menus.
...
Focusing on the layout will let user type, while the arrow icon is what will trigger showing/hiding the dropdown list (which gains focus automatically).
PiperOrigin-RevId: 322846934
2020-07-27 13:19:21 -04:00
marianomartin
049ad022a6
Delete components build.gradle files
...
PiperOrigin-RevId: 320944144
2020-07-15 09:38:31 -07:00
leticiars
7b5aea2ca3
[TextInputLayout] Fixed padding for prefix/suffix and label in RTL being wrong.
...
PiperOrigin-RevId: 319873647
2020-07-07 10:57:16 -04:00
marianomartin
555356b03f
Internal cleanup
...
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
leticiars
b274a4aa32
[TextInputLayout][a11y] Changing hint announcement.
...
* To make announcements clearer, removed helper text from hint announcement.
* Calling setLabelFor on helper text view so it's clear it refers to the edit text visually above it.
* Calling setError is enough to let the screen reader decide how to announce the error.
PiperOrigin-RevId: 317651946
2020-06-26 13:59:00 -04:00
leticiars
023e5182bf
[ExposedDropDownMenu] Changed the editable exposed dropdown menu's a11y class name to be EditText instead of a drop down since the primary action for the user is to type.
...
PiperOrigin-RevId: 317650366
2020-06-26 13:58:17 -04:00
marianomartin
20e238869c
[Internal] Added a TextWatcherAdapter class
...
PiperOrigin-RevId: 317355871
2020-06-26 13:57:26 -04:00
Material Design Team
342ea9ad25
Internal cleanup
...
PiperOrigin-RevId: 317147378
2020-06-19 13:42:35 -04:00
Material Design Team
073382034a
Migrate android.support.v4.content.ContextCompat to androidx
...
Android X migration
PiperOrigin-RevId: 315791679
2020-06-11 17:27:51 -07:00
leticiars
9b0a8d90e6
[TextInputLayout] Fixed clear icon and placeholder text being displayed when the text field is initialized with input text.
...
Resolves https://github.com/material-components/material-components-android/issues/1379
PiperOrigin-RevId: 315317199
2020-06-08 16:28:34 -04:00
leticiars
855602bb4f
[TextInputLayout] Fixed icon tint not being applied properly when calling set*IconDrawable
...
Resolves https://github.com/material-components/material-components-android/issues/1142
PiperOrigin-RevId: 314965854
2020-06-05 14:58:39 -04:00
Yurii Blinov
c59acae371
[MaterialAutoCompleteTextView] NullPointerException on Meizu devices closes #1347
...
Resolves https://github.com/material-components/material-components-android/pull/1354
Resolves https://github.com/material-components/material-components-android/issues/1347
GIT_ORIGIN_REV_ID=506d9c8197cab69d63c1415237f2e75a0af1b155
PiperOrigin-RevId: 314222991
2020-06-02 12:48:41 -04:00
Material Design Team
76ffe35fef
Cleanup
...
PiperOrigin-RevId: 313865830
2020-06-01 16:52:06 -04:00
leticiars
8a5c95c7b9
[TextInputLayout] Fixing crash when calling setBoxCornerRadii when edit text hasn't been added yet.
...
Resolves https://github.com/material-components/material-components-android/issues/1192
PiperOrigin-RevId: 312517954
2020-05-20 17:13:45 -04:00
leticiars
e315754617
[TextInputLayout] Fixing end icon having unexpected behaviors when it's switched from another end icon mode.
...
Resolves https://github.com/material-components/material-components-android/issues/503
PiperOrigin-RevId: 312129467
2020-05-19 10:06:36 -04:00
Rafael Wolf de Goes
33700b0cd3
[TextInputLayout] Fix: merge icon and view state when setting icon color.
...
Resolves https://github.com/material-components/material-components-android/pull/1237
Resolves https://github.com/material-components/material-components-android/issues/1235
Resolves https://github.com/material-components/material-components-android/issues/879
GIT_ORIGIN_REV_ID=186c8f0786b57c406694501389ba31c91bc128e2
PiperOrigin-RevId: 310460890
2020-05-08 15:19:02 -04:00
leticiars
e5a85a227a
[TextInputLayout] Adding setBoxBackgroundColorStateList method and fixing setBoxBackgroundColor method not changing focused and hovered states color like it did originally.
...
Resolves https://github.com/material-components/material-components-android/issues/1191
PiperOrigin-RevId: 308275897
2020-04-24 21:51:34 -04:00
leticiars
167020a596
[TextInputLayout] Adding setters and getters for boxStrokeWidth and boxStrokeWidthFocused attrs.
...
PiperOrigin-RevId: 308059511
2020-04-23 20:10:31 -04:00
leticiars
99c6a28b10
[TextInputLayout] Flipping password icon behavior so that it shows the action (what's going to happen after the click) instead of the current status.
...
PiperOrigin-RevId: 307878068
2020-04-22 17:42:45 -04:00
Kirill Olenyov
1b124afa02
[TextInputLayout] Add click listener for error icon
...
Resolves https://github.com/material-components/material-components-android/pull/1215
GIT_ORIGIN_REV_ID=f2ae41512162b09c4e37fa727b465970eb83f2b1
PiperOrigin-RevId: 307624385
2020-04-22 15:06:21 -04:00
leticiars
2df71d156b
[TextInputLayout] Fixing counter RTL not working for all languages.
...
PiperOrigin-RevId: 305286488
2020-04-09 05:19:45 -07:00
leticiars
a3d356fdb4
[TextInputLayout] Fixing placeholder not respecting edit text's gravity.
...
Resolves: https://github.com/material-components/material-components-android/issues/1139
PiperOrigin-RevId: 304037224
2020-04-03 08:53:49 -07:00
leticiars
236ce314e8
[ExposedDropdownMenu] Adding styles to public.xml
...
Resolves https://github.com/material-components/material-components-android/issues/1141
PiperOrigin-RevId: 303740794
2020-03-30 15:57:05 -04:00
leticiars
7879953930
[ExposedDropdownMenu] it should be getInt instead of getResourceId in order to properly read android:inputType
...
PiperOrigin-RevId: 302480767
2020-03-24 11:37:26 -04:00
leticiars
6e72652310
[ExposedDropdownMenu] Fixing width being too small when it's wrap_content.
...
Resolves https://github.com/material-components/material-components-android/issues/1001
PiperOrigin-RevId: 301415436
2020-03-18 17:34:28 -04:00
leticiars
c86a61c3ba
Updating javadocs for TextInputLayout
...
PiperOrigin-RevId: 300414100
2020-03-13 10:50:34 -04:00
leticiars
fd848e8aac
[ExposedDropdownMenu] Fixing double click sound when layout is clicked.
...
PiperOrigin-RevId: 299828619
2020-03-09 11:50:08 -07:00
leticiars
2bf42a74bb
[TextInputLayout] Calling clear() instead of setting text to null in ClearTextEndIconDelegate so that TalkBack announces that text was cleared.
...
PiperOrigin-RevId: 299417412
2020-03-09 09:39:10 -07:00
leticiars
d1850a3d78
[ExposedDropdownMenu] Implement workaround to inputType=none not working + move MaterialAutoCompleteTextView to textfield/ directory.
...
The alternative to android:editable="false" (which is deprecated) is to set inputType="none", however due to a framework bug that has no effect. This change makes it so it works as expected.
PiperOrigin-RevId: 299411110
2020-03-09 09:36:24 -07:00
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