如何在android中更改TextInputLayout中的背景笔划颜色?

如何在android中更改TextInputLayout中的背景笔划颜色?,android,material-design,android-textinputlayout,material-components-android,material-components,Android,Material Design,Android Textinputlayout,Material Components Android,Material Components,我正在xml设计中使用InputTextLayout。我想改变笔画的颜色。如何实现这一点?使用app:boxStrokeColor属性 <com.google.android.material.textfield.TextInputLayout app:boxStrokeColor="@color/...." ...> 您可以使用颜色或选择器。使用应用程序:boxStrokeColor属性 <com.google.android.material.

我正在xml设计中使用InputTextLayout。我想改变笔画的颜色。如何实现这一点?

使用
app:boxStrokeColor
属性

<com.google.android.material.textfield.TextInputLayout
      app:boxStrokeColor="@color/...."
      ...>


您可以使用颜色或选择器。

使用
应用程序:boxStrokeColor
属性

<com.google.android.material.textfield.TextInputLayout
      app:boxStrokeColor="@color/...."
      ...>


您可以使用颜色或选择器。

是否要更改textinput版面的边框颜色?如果您指的是底线颜色,则它是主题的强调色。检查这个:你想改变textinput版面的边框颜色吗?如果你是指底线颜色,那就是你主题的强调色。看看这个: