pfthomas
501ae367a1
[DatePicker] Fix arrangement of range text fields
...
- gives enough space for the text to not wrap when width too narrow
PiperOrigin-RevId: 632262914
2024-05-13 17:36:19 +00:00
pfthomas
9b09b693d9
[Tokens] Update tokens to v4.0.0
...
PiperOrigin-RevId: 626141198
2024-04-19 21:18:49 +00:00
pekingme
28cc2441d0
[Tokens] Updated to version 2.3.4.
...
PiperOrigin-RevId: 610835532
2024-02-29 08:36:02 -08:00
pekingme
ee7b4bddb4
[Tokens] Added formatting to break long lines and differentiate different comments.
...
PiperOrigin-RevId: 605684816
2024-02-12 18:03:59 +00:00
pekingme
89212044a9
[Tokens] Updated to v0.213.
...
PiperOrigin-RevId: 603749766
2024-02-06 14:30:16 +00:00
pekingme
08d7ded67b
[Tokens] Upgraded to v0.207.
...
PiperOrigin-RevId: 600947836
2024-01-24 21:05:53 +00:00
pekingme
4ccaaaa31d
[Tokens] Upgraded to v0.203
...
PiperOrigin-RevId: 579928128
2023-11-08 15:12:21 +00:00
pekingme
637362d597
[Tokens] Upgraded to v0.195
...
PiperOrigin-RevId: 579905417
2023-11-06 20:27:15 +00:00
pekingme
0463c507d7
[Tokens] Upgraded to v0.185
...
PiperOrigin-RevId: 579904837
2023-11-06 20:26:18 +00:00
conradchen
a8307ef792
[Process] Update translated strings
...
PiperOrigin-RevId: 576679982
2023-10-26 20:38:39 +00:00
pekingme
bfee8a74d7
[Tokens] Upgraded to v0.175.
...
PiperOrigin-RevId: 572648883
2023-10-12 11:04:28 -07:00
pekingme
8204856dd4
[Token][Color] Upgraded to v0.170 for tonal surface colors.
...
PiperOrigin-RevId: 555230534
2023-08-09 19:03:25 +00:00
pekingme
1562d0b64f
[ExposedDropdownMenu] Added attribute to set dropdown menu's container.
...
PiperOrigin-RevId: 528578402
2023-05-02 16:10:48 -04:00
leticiars
c598ccd51e
[TextInputLayout] Added API to set cursor colors for API 28+.
...
This is useful if the cursor color should be set in runtime, where setting ?attr/colorControlActivated for the edit text is not possible. Using the added APIs will take precedence over the value of ?attr/colorControlActivated.
This API is limited to APIs 28+ due to the framework getTextCursorDrawable() method being 28+.
Resolves https://github.com/material-components/material-components-android/issues/3255
Resolves https://github.com/material-components/material-components-android/issues/3311
PiperOrigin-RevId: 521448134
2023-04-10 14:23:58 +00:00
pekingme
d722a782bc
[Tokens] Upgraded outdated token output in textfield & appbar.
...
PiperOrigin-RevId: 520714140
2023-03-30 21:58:22 +00:00
pekingme
4c5b917609
[Tokens] Internal migration.
...
PiperOrigin-RevId: 520708971
2023-03-30 21:56:43 +00:00
dsn5ft
5689ce2608
[i18n] Update string translations
...
PiperOrigin-RevId: 513006191
2023-02-28 22:08:20 +00:00
pfthomas
e1688f3d19
[MaterialDatePicker][a11y] Improve date input validation feedback
...
Resolves https://github.com/material-components/material-components-android/issues/2223
Add `TextInputLayout.setErrorAccessibilityLiveRegion` and `TextInputLayout.getErrorAccessibilityLiveRegion` to allow controlling the way the TextInputLayout error is announced.
Example:
```
textInputLayout.setErrorAccessibilityLiveRegion(ViewCompat.ACCESSIBILITY_LIVE_REGION_NONE);
```
PiperOrigin-RevId: 497323465
2022-12-29 00:19:00 -05:00
pekingme
567cc5494b
[Tokens] Refresh the output to reflect the current version.
...
PiperOrigin-RevId: 484515702
2022-10-28 07:46:16 -07:00
leticiars
e7697c235b
[TextInputLayout] Integrated tokens for text fields and the exposed dropdown menu.
...
PiperOrigin-RevId: 474105090
2022-09-15 14:15:10 -04:00
rightnao
7c56473a58
[Translations] Update string translations
...
PiperOrigin-RevId: 472531245
2022-09-08 13:25:10 -04:00
rightnao
c98480c019
[TextInputLayout] Update motion attributes for textfield animations
...
PiperOrigin-RevId: 472525831
2022-09-08 13:24:09 -04:00
leticiars
9147704468
[ExposedDropdownMenu] Fixed missing icon activated color.
...
PiperOrigin-RevId: 466742317
2022-08-10 16:34:12 -04:00
rightnao
e284e57d64
[TextInputLayout] Add scale type setters/getters for start and end image buttons in the TextInputLayout
...
Resolves https://github.com/material-components/material-components-android/issues/2080
PiperOrigin-RevId: 463381963
2022-07-28 17:36:31 -04:00
rightnao
633b3cecfa
[TextInputLayout] Adding set/get methods to control minimum width and height for start/end icons
...
Resolves https://github.com/material-components/material-components-android/issues/2080
PiperOrigin-RevId: 461939723
2022-07-20 21:44:40 +00:00
leticiars
6206ff5a1f
[ExposedDropdownMenu] Added support for default/ripple background colors for the selected item of the exposed dropdown menu when the default MaterialAutoCompleteArrayAdapter is being used.
...
PiperOrigin-RevId: 447531152
2022-05-09 17:35:43 -04:00
leticiars
0e4e44e8cd
[TextInputLayout] Updated shape to use M3 attrs/styles.
...
PiperOrigin-RevId: 444647020
2022-04-27 10:09:51 -04:00
conradchen
431e291b01
[Translation] Update string translations
...
PiperOrigin-RevId: 443191056
2022-04-20 17:19:02 -04:00
leticiars
2c335b5f77
[ExposedDropdownMenu] Updated the elevation of the popup to match M3 specs. Also fixed bug where elevation wasn't being read via xml.
...
PiperOrigin-RevId: 440397922
2022-04-11 11:17:51 -04:00
leticiars
df3a708392
[ExposedDropdownMenu] Fixed android:popupBackground not working in xml/styles for the AutoCompleteTextView.
...
Before, its value was being overwritten in code where we set the default popup background, so we should null it in the Material styles.
PiperOrigin-RevId: 437813304
2022-03-30 15:12:06 +00:00
leticiars
dce4419744
[TextInputLayout][a11y] Fixed text field's focused rect wrong behavior when using a11y magnification.
...
Before, in requestRectangleOnScreen we were setting the text input layout’s rectangle to a specific and constant position, which caused the zoomed in screen to be fixed to the left instead of following the input text as it was typed. We should use the edit text’s rectangle’s position first, then adjust for the text field’s height (which includes the helper/error text), then use that updated rectangle on the super call of the method.
PiperOrigin-RevId: 435402032
2022-03-17 18:52:42 +00:00
conradchen
85ed9938d7
[TextField] Provide set simple items API with default item layout for MaterialAutoCompleteTextView
...
Resolves https://github.com/material-components/material-components-android/issues/692
PiperOrigin-RevId: 428832331
2022-02-15 19:33:49 +00:00
pfthomas
7d46b95e9e
[TextInputLayout] Add support for minEms and maxEms
...
Resolves https://github.com/material-components/material-components-android/issues/2269
PiperOrigin-RevId: 423118234
2022-01-24 14:48:13 -05:00
Vyacheslav
26d862bc54
[TextInputLayout] Speedup simple inflate.
...
Changes are mostly to keep start/end layouts and icon views hidden (visibility = gone) when they are not needed.
Resolves https://github.com/material-components/material-components-android/pull/2326
GIT_ORIGIN_REV_ID=0393ac65d562bc87d340ec7bb260ebba99a1ac3b
Co-authored-by: leticiarossi <9288695+leticiarossi@users.noreply.github.com>
PiperOrigin-RevId: 418038435
2021-12-28 08:54:28 -05: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
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
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
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
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
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
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
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