[TextInputLayout] Some attributes doesn't work
See original GitHub issueDescription: Some attributes of TextInputLayout doesn’t work about ‘error’.
I find issue about here attributes.
app:boxStrokeErrorColor="@color/errorStroke"
app:errorIconTint="@color/errorIconTint"
It dosen’t work well. Is there anything else I can do to use these attributes?
Expected behavior: I think it have to change Error icon color, and stroke color when error occured.
Source code: The code snippet which is causing this issue. Please consider attaching a minimal sample app that reproduces the issue.
Android API version: 28
Material Library version: 1.2.0-alpha06
Device: All device
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
TextInputLayout is not working when I set OutlinedBox in style
First, read the official docx properly. You're using EditText instead of TextInputEditText , also when using TextInputLayout , properties like ...
Read more >TextInputLayout | Android Developers
Returns whether any hint state changes, due to being focused or non-empty text, are animated. Related XML Attributes:.
Read more >TextInputLayout doesn't support RTL hints [37055931]
Hi Chris, It seems that the fix works for activities, but if the login text inputs are inside of a fragment that's on...
Read more >Android TextInputLayout Example | DigitalOcean
Floating Hints are enabled by default in a TextInputLayout. To disable it we need to add the following attribute inside the tag :...
Read more >Replacing EditTexts with TextInputLayouts in Android
Step 5: Adding hint attribute into TextInputEditText · <?xml version="1.0" encoding="utf-8"?> · <androidx.constraintlayout.widget.ConstraintLayout ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m running into a similar error as OP on 1.3.0-beta01. I’m setting the
boxStrokeErrorColor
through a style though.boxStrokeErrorColor attribute not working on material 1.5.0 for me either. I have this in my styles:
I would expect the outline to go red when error is displayed, but instead it stays the same color as usual:
While what I would expect is this in error state:
Maybe I am missing something?