40 Commits

Author SHA1 Message Date
Material Design Team
2f3d4f9efe [Docs] Updated the nomenclature of images and removed unused images.
PiperOrigin-RevId: 791194140
2025-08-08 17:46:44 +00:00
Material Design Team
c18aae81e3 [Docs] Updated Text Fields doc to make it more user friendly
PiperOrigin-RevId: 775627490
2025-06-27 16:14:43 +00:00
manabu-nakamura
522c9dc2e7 [Documentation] Update shape references in TextField.md and Card.md.
Resolves https://github.com/material-components/material-components-android/pull/4475
Resolves https://github.com/material-components/material-components-android/pull/4480

GIT_ORIGIN_REV_ID=798574d72daa041cca177015c5510e8ae2e2a59e
PiperOrigin-RevId: 717879277
2025-01-21 16:52:41 +00:00
rightnao
7f01739644 [TextInputLayout] Add hintMaxLines attribute
PiperOrigin-RevId: 685884472
2024-10-15 16:51:14 +00:00
pubiqq
9a39e222d8 [Docs] Fix anchors.
Resolves https://github.com/material-components/material-components-android/pull/4015

GIT_ORIGIN_REV_ID=0b4097653df971659ed1526e450bc40030f502e3
PiperOrigin-RevId: 634017580
2024-05-16 14:03:41 +00:00
pekingme
2114a11378 [Docs] Updated dev doc for tonal surface colors in affected components.
PiperOrigin-RevId: 556901517
2023-08-14 20:55:38 +00:00
rightnao
1785bbfabe [Docs] Cross-reference m.io and DAC in Github docs
PiperOrigin-RevId: 546035020
2023-07-07 17:50:11 +00: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
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
Nissan Ahmed
ad0d73a247 [Doc] Fix broken column due to extra newline
Resolves https://github.com/material-components/material-components-android/pull/3030

GIT_ORIGIN_REV_ID=b5c1320b8dd372841266e56ecb7c59dc0afca257
PiperOrigin-RevId: 481759510
2022-10-17 22:50:28 +00:00
leticiars
ae788ac481 [Documentation] Update text field doc to include information about android:textColorHighlight
Resolves https://github.com/material-components/material-components-android/issues/2808

PiperOrigin-RevId: 471240135
2022-08-31 15:55:04 -07: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
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
leticiars
1b7e92d99c [TextInputLayout] Updated documentation to clarify end icon mode's expected usage and behaviors relating to the icon's drawable.
Resolves https://github.com/material-components/material-components-android/issues/2528

PiperOrigin-RevId: 427506995
2022-02-11 15:41:02 +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
leticiars
a369449809 [Documentation] Added note about screen readers skipping decorative text field elements.
PiperOrigin-RevId: 407423892
2021-11-04 10:56:06 -04:00
Material Design Team
b0e9ac58d7 [M3][Docs] Update Text Field developer documentation
PiperOrigin-RevId: 396890788
2021-09-16 13:30:58 -07:00
conradchen
c283f32ed5 [M3][TextField][Menu] Fix text field and menu dev doc format
PiperOrigin-RevId: 395933716
2021-09-15 12:33:10 -07:00
conradchen
0fbdedc9be [M3][TextField] Update text field dev doc with M3 themes/styles
PiperOrigin-RevId: 395758232
2021-09-15 12:27:48 -07:00
Material Design Team
336042dd0d [Documentation][TextInputLayout]
PiperOrigin-RevId: 378427153
2021-06-09 18:22:53 +00: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
leticiars
77918676d1 [Documentation] Fixed tables having empty first column title.
PiperOrigin-RevId: 353095221
2021-01-21 17:21:37 -05:00
nickrout
9ce3d153b7 [Documentation] Composite revamp.
PiperOrigin-RevId: 353052233
2021-01-21 12:56:20 -08:00
nickrout
e95aa2ba05 [Documentation] Prepared component docs for material.io update.
PiperOrigin-RevId: 345682770
2020-12-04 13:16:31 -05:00
leticiars
6213498cde [Documentation] Updated Menu assets images.
Also updated instances of 'gray' to 'grey' to match material.io

PiperOrigin-RevId: 344857374
2020-12-01 09:26:38 -05: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
dniz
fcf4b9f6ac [Docs] Updated link to Google Maven in Getting Started guide to be more specific
PiperOrigin-RevId: 321611185
2020-07-20 12:32:51 -07:00
nickrout
5ac487a7c0 [Documentation] Fixed broken links.
PiperOrigin-RevId: 320965013
2020-07-15 09:41:16 -07:00
leticiars
bd9124bfe5 [Documentation] Adding note about using text fields programmatically.
PiperOrigin-RevId: 316899324
2020-06-17 20:06:15 -07:00
leticiars
e301799492 [Documentation] Fixing formatting.
PiperOrigin-RevId: 309081639
2020-04-29 16:15:43 -04:00
leticiars
0d1025a061 [Documentation} Adding table of content and hero images to new docs.
PiperOrigin-RevId: 308713205
2020-04-27 18:55:04 -04: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
leticiars
46d878410b [Documentation] Update text field doc to include android:enabled.
PiperOrigin-RevId: 299389842
2020-03-06 11:41:20 -08:00
leticiars
143372d9bc [Documentation] Updating names in table of text field doc.
PiperOrigin-RevId: 297928117
2020-02-28 17:14:32 -05:00
leticiars
e942499383 [Documentation] Updating text fields doc info.
PiperOrigin-RevId: 297925786
2020-02-28 17:06:50 -05:00
Nick Rout
c723074b7c [Text fields] Update doc
Resolves https://github.com/material-components/material-components-android/pull/1067

GIT_ORIGIN_REV_ID=1872514e11691a4aebce21f5c4c238399dbd32c7
PiperOrigin-RevId: 297681747
2020-02-28 09:47:06 -05:00
leticiars
eba2be64f4 [Documentation] Updating text fields doc
PiperOrigin-RevId: 296268737
2020-02-20 16:33:09 -05:00