conradchen
0fbdedc9be
[M3][TextField] Update text field dev doc with M3 themes/styles
...
PiperOrigin-RevId: 395758232
2021-09-15 12:27:48 -07:00
dsn5ft
a461de5fd8
[M3][Text Field] Updated text appearance mappings
...
PiperOrigin-RevId: 391786230
2021-08-23 09:24:52 -07:00
conradchen
edbc4e1f64
[M3][Textfield] Create M3 styles
...
PiperOrigin-RevId: 391773145
2021-08-23 09:22:14 -07:00
Natalia Kuznetsova
cdeeb824cb
[TextInputLayout] Adding getter and setter for boxCollapsedPaddingTop
...
Resolves https://github.com/material-components/material-components-android/pull/2289
GIT_ORIGIN_REV_ID=50ec191fbca0e2223ac322adb3f36035186b4bca
PiperOrigin-RevId: 391122971
2021-08-16 13:49:38 -07:00
jeremymuhia
10edc29b4f
[TextInputLayout] fix counterTextColor java docs
...
PiperOrigin-RevId: 390602431
2021-08-16 13:43:10 -07:00
dsn5ft
57e3bc02fa
[i18n] Updated some string translations for date picker, time picker, and text field
...
PiperOrigin-RevId: 389899697
2021-08-10 21:08:28 -07:00
pfthomas
47868d884e
[DatePicker] Date selector hint incorrectly localized
...
PiperOrigin-RevId: 387066584
2021-07-29 14:28:10 -04:00
conradchen
4044183f46
[TextInputLayout] Apply tint when setting start icons
...
If startIconTint is a plain color, refreshStartIconDrawableState() won't update the tint to the new drawable. To solve the issue and make the logic be consistent, calls applyStartIconTint() when a new icon is set.
Resolves https://github.com/material-components/material-components-android/issues/2141
PiperOrigin-RevId: 383632467
2021-07-08 15:59:37 +00:00
conradchen
717774ec7f
[TextField] Do not load default drawable if custom end icon is being used
...
Resolves https://github.com/material-components/material-components-android/issues/2085
PiperOrigin-RevId: 382785324
2021-07-07 19:21:28 +00:00
conradchen
8a4f42aca7
[TextField] Make clear text icon focusable
...
The current logic hides clear text icon whenever edit text loses its
focus. Therefore, the clear text icon can never be focused. Changes
the logic so it retains clear text icon if it has focus.
Resolves https://github.com/material-components/material-components-android/issues/2222
PiperOrigin-RevId: 380802379
2021-06-24 13:00:34 -07:00
afohrman
c92e6934d5
[TextInputLayout] Added a fade transition to placeholder TextView's appear and disappear.
...
The placeholder TextView previously appeared and disappeared with no fade, which led to a jarring effect and an overlap between the hint text and the placeholder text.
PiperOrigin-RevId: 373713144
2021-05-14 15:29:49 -04:00
leticiars
87b50c6aee
[TextInputLayout] Fixed cutout padding so text field outline doesn't overlap collapsed hint.
...
Resolves https://github.com/material-components/material-components-android/issues/2127
PiperOrigin-RevId: 372563674
2021-05-07 12:27:01 -04:00
leticiars
73bf653ef2
Automated g4 rollback of changelist 372177002
...
PiperOrigin-RevId: 372384266
2021-05-07 12:16:55 -04:00
leticiars
66b0c98a27
[TextInputLayout] Fixed cutout padding so text field outline doesn't overlap collapsed hint.
...
Resolves https://github.com/material-components/material-components-android/issues/2127
PiperOrigin-RevId: 372177002
2021-05-05 15:41:30 -04:00
leticiars
f97560d8a8
[TextInputLayout][Large Screens] Adding setMinWidth and setMaxWidth methods on the TextInputLayout so it works as expected.
...
PiperOrigin-RevId: 366041873
2021-03-31 11:57:04 -04:00
Adrien Vitti
740a3d247b
[TextInputLayout] Fixed clear icon being displayed when the text field is not focused.
...
Resolves https://github.com/material-components/material-components-android/pull/2025
Resolves https://github.com/material-components/material-components-android/issues/2024
GIT_ORIGIN_REV_ID=19a520a8d44cbb62e307fd4dde251cd7ca97da42
PiperOrigin-RevId: 366032778
2021-03-31 10:54:43 -04:00
leticiars
81273acb26
[TextInputLayout][LargeScreens] Adding default, max and min widths for text fields to optimize for large screens.
...
PiperOrigin-RevId: 363660219
2021-03-18 12:54:05 -04:00
haodong
0d0c90b9ef
Updated string translations.
...
PiperOrigin-RevId: 354978993
2021-02-01 11:03:44 -08:00
leticiars
6015a4e901
[TextInputLayout] Adjusted background of collapsed hint to not overlap with edit text's background.
...
Resolves https://github.com/material-components/material-components-android/pull/1660
Resolves https://github.com/material-components/material-components-android/issues/1319
PiperOrigin-RevId: 353645196
2021-01-25 09:25:00 -08:00
leticiars
40e33a772c
[TextInputLayout][a11y] Fixed placeholder text not being properly announced.
...
PiperOrigin-RevId: 346578367
2020-12-09 15:00:22 -05:00
Amr
dd0e697aca
[TextInputLayout] Fix IndexOutOfBoundsException when trying to change end icon
...
Resolves https://github.com/material-components/material-components-android/pull/1788
Resolves https://github.com/material-components/material-components-android/issues/1724
Resolves https://github.com/material-components/material-components-android/issues/1748
PiperOrigin-RevId: 345541684
2020-12-04 09:47:38 -05:00
connieshi
725d78deb5
[i18n] Added or updated string translations for i18n / l10n
...
PiperOrigin-RevId: 344821092
2020-11-30 13:42:11 -05:00
leticiars
7bb8c4da01
[TextFields] Added comments explaining edit text padding values.
...
PiperOrigin-RevId: 339295143
2020-10-28 09:45:18 -04:00
leticiars
c9f2caaf9d
Automated g4 rollback of changelist 339130013
...
PiperOrigin-RevId: 339279131
2020-10-28 09:40:41 -04:00
Material Design Team
8f6b39d860
Automated g4 rollback of changelist 339053684
...
PiperOrigin-RevId: 339130013
2020-10-27 10:21:11 -07:00
leticiars
948bb327f9
[ExposedDropdownMenu] Update paddings to match spec.
...
PiperOrigin-RevId: 339053684
2020-10-27 10:18:36 -07:00
rlatapy-luna
8ab270eba5
[TextInputLayout] Fixed clear text icon hide on double click
...
Resolves https://github.com/material-components/material-components-android/pull/1778
GIT_ORIGIN_REV_ID=add326dcc2cf85ad8c1f5354c0b6c4c6e1e31d45
PiperOrigin-RevId: 335700378
2020-10-08 15:59:57 +00:00
leticiars
c8197e3a26
[Text fields] Updated text fields measurements to match spec.
...
- updated top and bottom padding (updating the heights) except of dense outlined
- updated start and end paddings of layout and helper/error/counter view area
- updated label position of filled
- added padding between prefix/suffix and text input
PiperOrigin-RevId: 334955916
2020-10-08 15:43:54 +00:00
dniz
467bb88650
[TextField] Added string translations for i18n / l10n
...
PiperOrigin-RevId: 334813426
2020-10-01 11:30:12 -04:00
Gabriele Mariotti
8bcc8ee371
[TextInputLayout] Fixed wrong position of the counter when helper or error text are removed
...
Resolves https://github.com/material-components/material-components-android/pull/1726
GIT_ORIGIN_REV_ID=c8edb8beee34d0a479d763bbfbbe6936dc8b6d85
Co-authored-by: pekingme <pekingme@gmail.com>
PiperOrigin-RevId: 333351975
2020-09-24 08:59:14 -07:00
leticiars
22973ff103
[TextFields] Added expandedHintEnabled attribute (true by default). If set to false it allows for the hint to always be in its collapsed state.
...
If false it also allows for the placeholder text and prefix/suffix to be displayed when the text field is empty.
Resolves https://github.com/material-components/material-components-android/issues/1459
Resolves https://github.com/material-components/material-components-android/issues/1644
Resolves https://github.com/material-components/material-components-android/pull/1645
Resolves https://github.com/material-components/material-components-android/pull/1163
PiperOrigin-RevId: 331181181
2020-09-11 14:52:40 -04:00
Gabriele Mariotti
b48b445fb8
[TextInputLayout] Fixed wrong hint position when an error is shown and field is empty and unfocused
...
Resolves https://github.com/material-components/material-components-android/pull/1661
GIT_ORIGIN_REV_ID=8eccce1bee2f331b1441540985435cefe4e40b67
PiperOrigin-RevId: 330956944
2020-09-11 14:24:34 -04:00
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