Question: TextInputLayout startIcon support. How to set padding between the icon and text?
See original GitHub issueThere is a new option in this component: startIcon
.
How to set paddings to it? Like android:drawablePadding
.
The question is for both startIcon and endIcon.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:13 (4 by maintainers)
Top Results From Across the Web
How to disable padding on TextInputLayout? - Stack Overflow
You can just set the start and end padding on the inner EditText to 0dp. <com.google.android.material.textfield.TextInputLayout ...
Read more >TextInputLayout with a drawable without the padding Hint
This view will work, no matter the drawable size, the first step start on the init() function that we have, inside the TextInputLayout...
Read more >TextInputLayout | Android Developers
Sets the text color used by the prefix text in all states. void, setStartIconCheckable(boolean startIconCheckable). Sets the current start icon ...
Read more >Android Material Text Fields | DigitalOcean
TextInputLayout provides an implementation for Material text fields. ... These are basically icons set at the right of the text field.
Read more >Material Components Textinputedittext Margin Of Bottom Line
Ask questionsQuestion: TextInputLayout startIcon support. How to set padding between the icon and text? There is a new option in this component: startIcon....
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
please offer a attribute like ‘endIconPadding(Left、Right、Top、Bottom…)’
you can set like
android:drawablePadding="-15dp"