如何更改google.android.material.textfield.TextInputLayout线条颜色

时间:2019-11-23 21:42:28

标签: android android-layout

show above picture to change activated colour

       <com.google.android.material.textfield.TextInputLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="E-Mail"
                android:textColorHint="@color/yellow"
                android:id="@+id/email_txtInput">

                <com.google.android.material.textfield.TextInputEditText
                    android:id="@+id/email_edtTxt"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:singleLine="true"
                    android:maxLines="1"
                    android:backgroundTint="@color/yellow"
                    android:inputType="textEmailAddress"
                    android:fontFamily="@font/roboto_bold" />

            </com.google.android.material.textfield.TextInputLayout>

我已经编写了上面的代码,我使用了这一行,但是没有用。

app:boxStrokeColor =“ @ color / yellow”

0 个答案:

没有答案
相关问题