question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: TextInputLayout startIcon support. How to set padding between the icon and text?

See original GitHub issue

There 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:open
  • Created 4 years ago
  • Reactions:3
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

50reactions
JiongBullcommented, Dec 26, 2019

please offer a attribute like ‘endIconPadding(Left、Right、Top、Bottom…)’

10reactions
appdevcommented, Oct 12, 2020

you can set like android:drawablePadding="-15dp"

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found