这个问题可以通过在 TextInputLayout 中使用 app:boxBackgroundColor 属性来解决,而不是在 TextInputEditText 中使用 backgroundTint 属性。例如:
注意,如果您的应用程序的最小支持版本低于 API 级别 21,则需要在您的 styles.xml 文件中添加以下主题:
styles.xml
@color/white @color/white
上一篇:BackgroundThreadwithoutLooper
下一篇:backgroundTint与cornerRadius不兼容问题