我正在尝试更改com.google.android.material.textfield.TextInputLayout框描边颜色,但未聚焦,但是没有属性,这是我的TextInputLayout代码
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="36dp"
android:layout_marginTop="38dp"
android:layout_marginEnd="36dp"
android:textColorHint="@color/white"
app:boxStrokeColor="@color/white"
app:boxStrokeWidth="1dp">
android:id="@+id/editTxt_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/hint_email"
android:inputType="textEmailAddress"
android:textColorHint="@color/white" />
所以我尝试在我的颜色文件中使用这条线
#fff
这解决了问题并更改了笔触框的颜色,但是这里的问题是我想在同一应用程序的其他TextInputLayouts中更改此颜色!