如何在 Material Design for Android 的 TextInputEditText 中设置 Leading-Icon?我只找到了如何设置 Leading-Icon。
使用 drawableLeft 时,图标不会垂直居中。重力没有影响。
最佳答案
我找到了这个问题的解决方案。 TextInputEditText 的 Container TextInputLayout 有一个名为 app:startIconDrawable 的属性,您可以在其中设置文本字段的前导图标。如果您使用 Material Design,“drawableLeft”属性将不起作用。
关于android - 如何设置Android Material-Design TextInputEditText Leading-Icon?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56097733/