-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Solved the issue of overlapping between the clear text button and the…
… error exclamation mark at the end of the current elec meter reading text field. Performed `setError()` on `TextInputLayout` instead of `TextInputEditText`. When we perform `setError()` on `TextInputEditText`, the error message is show only when the text field is focuses else there will be only a red exclamation mark at the end of the text field, and it also overlaps if there is trailing icon or button like "clear_text" button. The error message is also shown as dialog linked with the exclamation. On the other hand, if we perform `setError()` on the `TextInputLayout`, the error message is shown below the text field which is the default Material behavior and the error message is shown regardless of whether the text field is focused or not. It also doesn't overlap the trailing icon or button.
- Loading branch information
1 parent
8e6b7d7
commit 7fcf82c
Showing
3 changed files
with
46 additions
and
46 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters