【问题标题】:How to change the background stroke color in TextInputLayout in android?如何在 android 中更改 TextInputLayout 中的背景笔触颜色?
【发布时间】:2019-07-18 17:34:52
【问题描述】:

我在 xml 设计中使用 InputTextLayout。我想改变描边颜色。我怎样才能做到这一点?

【问题讨论】:

标签: android material-design android-textinputlayout material-components-android material-components


【解决方案1】:

使用 app:boxStrokeColor 属性

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

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

【讨论】:

    猜你喜欢
    • 2020-12-16
    • 2020-06-26
    • 1970-01-01
    • 2014-01-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-14
    • 1970-01-01
    相关资源
    最近更新 更多