leticiars
631c320dea
Adding error icon documentation.
...
PiperOrigin-RevId: 261348566
2019-08-02 15:58:54 -04:00
leticiars
1c4f77c00e
Adding a frame wrapper for the TextInputLayout end icon so it simplifies the error icon implementation.
...
PiperOrigin-RevId: 260934634
2019-08-02 15:53:43 -04:00
leticiars
896e432945
Refactoring TextInputLayout.On*Listeners and restricting EndIconMode annotation.
...
PiperOrigin-RevId: 260516099
2019-07-29 16:47:05 -04:00
leticiars
3f73804b57
Implementing error icon for text fields.
...
They are set by default when the text field is on error state, but can be disabled by setting the error icon drawable to null via the errorIconDrawable attribute or the setErrorIconDrawable method.
PiperOrigin-RevId: 260495196
2019-07-29 16:43:16 -04:00
marianomartin
2241380dba
Internal cleanup
...
PiperOrigin-RevId: 259753640
2019-07-24 15:09:18 -04:00
leticiars
6a88f2b7d7
Adding option to set TextInputLayout icons to be not checkable.
...
Also updating clear text end icon to be not checkable, so that screen readers don't announce the icon's checked state as it's not relevant (differently from the password toggle icon, for example).
PiperOrigin-RevId: 259532643
2019-07-23 11:14:44 -04:00
dniz
8dc2eefd19
Update comments
...
PiperOrigin-RevId: 259405175
2019-07-22 21:20:09 -04:00
dniz
0512f776c5
Remove sub-package AndroidManifest.xml files from lib directory
...
PiperOrigin-RevId: 258390736
2019-07-16 13:18:32 -04:00
isabellekim
a628bf516b
Revert the library to compile with Java 7: revert lambdas, add necessary casts, and make some variables final.
...
Continue compile shrine demo, catalog, and tests with Java 8.
PiperOrigin-RevId: 257874888
2019-07-15 19:19:23 -04:00
leticiars
413021576e
Fixing extra padding being added to icon views.
...
PiperOrigin-RevId: 257045498
2019-07-09 12:59:05 -04:00
Antonin Fouques (CmoaToto)
7787a8257d
use .equalsIgnoreCase(...) instead of .toLowerCase().equals(...)
...
GIT_ORIGIN_REV_ID=173665654ad165cee4c3da64af4fd60afa9a1f61
Resolves https://github.com/material-components/material-components-android/pull/411
PiperOrigin-RevId: 256404636
2019-07-03 15:19:19 -04:00
leticiars
15b721c750
Fixing input text not adjusting to start/end icons in some cases.
...
PiperOrigin-RevId: 256369941
2019-07-03 14:14:06 -04:00
marianomartin
164bf0fabd
Internal cleanup
...
PiperOrigin-RevId: 255609320
2019-07-03 14:02:53 -04:00
marianomartin
367b295624
Internal cleanup
...
PiperOrigin-RevId: 254414602
2019-06-24 17:12:42 -04:00
leticiars
326dc8a13a
Animating dropdown arrow icon.
...
PiperOrigin-RevId: 254279577
2019-06-24 17:05:54 -04:00
leticiars
b89a91c710
Animating clear button end icon.
...
PiperOrigin-RevId: 253852706
2019-06-24 16:45:49 -04:00
leticiars
1ba8a45332
Fixing TextInputLayout wrongly announcing "End of field" message in TalkBack mode.
...
PiperOrigin-RevId: 253242183
2019-06-18 13:29:19 -04:00
cketcham
bff75f2d3e
Update to lamdas
...
PiperOrigin-RevId: 252846439
2019-06-18 13:21:02 -04:00
marianomartin
5a5d311a36
Check more lint warnings, show warnings as errors.
...
PiperOrigin-RevId: 252822573
2019-06-18 13:20:15 -04:00
afohrman
569d33a055
Remove corner radius adjustment from outline text fields.
...
PiperOrigin-RevId: 252682213
2019-06-18 12:04:27 -04:00
leticiars
34e9ab24fb
Only make filled text field hint vertically centered if edit text's min lines is 1.
...
In APIs > 15.
PiperOrigin-RevId: 252630869
2019-06-18 11:56:16 -04:00
leticiars
2ec8717f9f
Make decorative icons in text fields not focusable in TalkBack mode.
...
PiperOrigin-RevId: 252405963
2019-06-18 11:51:17 -04:00
leticiars
cb5430e117
Some Exposed Dropdown Menu accessibility improvements:
...
- fixing the layout not responding to TalkBack double click
- making the end icon not be focusable in accessibility mode
- making TalkBack announcement be the same as the Spinner's
PiperOrigin-RevId: 251479580
2019-06-10 08:54:13 -07:00
leticiars
16a6e72ecc
Fixing passwordToggleEnabled="false" not working as expected.
...
Note: it's advised to use endIconMode instead of passwordToggleEnabled.
PiperOrigin-RevId: 250892878
2019-06-10 08:22:56 -07:00
leticiars
0c0951ce6d
Fixing requestLayout() being incorrectly called multiple times.
...
The end icon dummy drawable should only be set if it's not yet set.
PiperOrigin-RevId: 249462027
2019-05-24 14:18:31 -04:00
marianomartin
90837ec485
Internal cleanup
...
PiperOrigin-RevId: 249243403
2019-05-21 12:15:07 -04:00
Antonin Fouques (CmoaToto)
ccb7fbe8b3
Simplify Meizu fix by forcing creation of a hintLayout
...
GIT_ORIGIN_REV_ID=5545bb3920a651e8a2e1f1a0586fbecdad7c55bb
Resolves https://github.com/material-components/material-components-android/pull/358
PiperOrigin-RevId: 248391866
2019-05-16 17:25:11 -04:00
leticiars
837febea61
Adding the EditText as a parameter for onEditTextAttached().
...
PiperOrigin-RevId: 248218371
2019-05-16 17:17:14 -04:00
leticiars
5f8f60457a
Changing how password toggle end icon updates its checked state.
...
Now it will automatically change to checked or not checked depending if the EditText's transformation method is changed.
PiperOrigin-RevId: 248185643
2019-05-16 17:12:39 -04:00
leticiars
650c8ae063
Fixing typo in dropdown content description string.
...
PiperOrigin-RevId: 247306870
2019-05-16 12:36:32 -04:00
leticiars
c71b6ccb13
Exposed Dropdown Menu ( https://material.io/design/components/menus.html#exposed-dropdown-menu ).
...
An AutoCompleteTextView should be used in the place of a TextInputEditText, along with with a Widget.MaterialComponents.TextInputLayout.(...).ExposedMenuDropdown style.
PiperOrigin-RevId: 246343749
2019-05-03 10:58:36 -04:00
marianomartin
0e9513a86f
Fix getter in text input layout
...
PiperOrigin-RevId: 245479204
2019-04-29 15:57:13 -07:00
leticiars
9a53656172
Renaming clear text button drawable file for consistency.
...
PiperOrigin-RevId: 245057763
2019-04-29 15:35:11 -07:00
leticiars
aa84ca93be
Creating EndIconDelegate abstract class and subclasses to refactor how TextInputLayout initialize its end icons.
...
PiperOrigin-RevId: 244058404
2019-04-19 21:35:40 -04:00
afohrman
db408ee4ce
Add clearer documentation that box background colors are only supported for filled text fields.
...
PiperOrigin-RevId: 242870719
2019-04-19 15:24:13 -04:00
leticiars
27eac541b0
Fixing end and start icon ripples appearing behind text input layout.
...
PiperOrigin-RevId: 242660816
2019-04-19 13:09:03 -04:00
afohrman
4476564820
Vertically center the filled text field's expanded label.
...
PiperOrigin-RevId: 241791031
2019-04-05 15:46:27 -04:00
afohrman
a17e4373ad
Delete unused padding resource from text field's dimens.xml file.
...
This resource is not in the public.xml file. This means that they are not intended to be shipped as part of our library and are fine to delete.
PiperOrigin-RevId: 241732718
2019-04-05 15:45:31 -04:00
leticiars
efc7f37699
Fixing bug of single hex color values set in the XML not being read for icons tint lists.
...
PiperOrigin-RevId: 239217545
2019-03-22 16:55:11 -04:00
afohrman
36fc2c66c6
Make sure that the ShapeAppearanceModel is always read from the TextInputLayout styles.
...
The boxCornerRadius attributes were still in the MDC styles, which means that the shapeAppearance and shapeAppearanceOverlay attributes were not respected. This commit removes the boxCornerRadius attributes to ensure that changes to shapeAppearance or shapeAppearanceOverlay are respected where shape theming is enabled.
PiperOrigin-RevId: 239214930
2019-03-22 16:53:04 -04:00
leticiars
29b0670cee
Updating end icon setter parameters to match the method names.
...
PiperOrigin-RevId: 239197723
2019-03-22 16:51:08 -04:00
afohrman
e2c8d0fbd2
Fix TextInputLayouts used with a Widget.MaterialComponents style and a non-Widget.MaterialComponents EditText child.
...
NOTE: This case is not supported. Limited support is provided when feasible in order to avoid breaking existing usages, but all TextInputLayouts used with a Widget.MaterialComponents style and a non-Widget.MaterialComponents input child should update the input child to use a Widget.MaterialComponents.TextInputEditText style to avoid future breakages.
PiperOrigin-RevId: 239047527
2019-03-22 16:30:47 -04:00
leticiars
2642ff2697
Adding support for TextInputLayout start icon. It can be set to be just a drawable or, if a OnClickListener is set to it, a button.
...
For that reason, users should opt to use the start icon API instead of setting a start/left compound drawable on the text field's edit text.
PiperOrigin-RevId: 238984066
2019-03-22 16:19:36 -04:00
leticiars
4690a8893d
Fixing end icon tint always being overriden by old password toggle tint.
...
PiperOrigin-RevId: 236645688
2019-03-08 09:51:23 -05:00
leticiars
168a468f29
Refactoring TextInputLayout's end icon initialization to always have the end icon view ready. Also refactoring OnEndIconInitializedListener to OnEditTextAttached listener.
...
PiperOrigin-RevId: 235781672
2019-02-27 17:59:10 -05:00
leticiars
b7f520d0f6
Fix padding of TextInputEditText when an icon is present.
...
PiperOrigin-RevId: 235236593
2019-02-24 14:36:44 -05:00
Material Design Team
3745cc5960
There is no need to use deprecated Space class from support library. Space was added in API 14 in platform and hasn't changed since.
...
PiperOrigin-RevId: 235055577
2019-02-24 14:33:42 -05:00
leticiars
56859415e8
Adding support for a custom end icon for the TextInputLayout.
...
A user-specified icon can now be set via app:endIconMode="custom" and attributes app:endIconDrawable and app:endIconContentDescription. It is also possible to set a custom OnClickListener via TextInputLayout's end icon API.
PiperOrigin-RevId: 234671237
2019-02-24 14:23:57 -05:00
leticiars
4882a4f131
Adding clear text button end icon to TextInputLayout.
...
PiperOrigin-RevId: 234141273
2019-02-24 14:15:28 -05:00
leticiars
ee66029e6c
Adding back padding to the text field end icon.
...
PiperOrigin-RevId: 233668308
2019-02-24 14:08:11 -05:00