如何从材质组件更改textinputlayout上的大纲颜色?

jm2pwxwz  于 2021-07-03  发布在  Java
关注(0)|答案(0)|浏览(149)

当从material组件实现textinputlayout时,我得到了一个错误,上面写着“error explinging class com.google.android.material.textfield.textinputlayout”。实际上,我已经解决了这个问题,把我的根布局材料的主题

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
tools:context=".LoginActivity"

**android:theme="@style/Theme.MaterialComponents.Light.NoActionBar"**

android:padding="20dp">

但是轮廓颜色和字体发生了变化,我该怎么做才能使轮廓颜色恢复到我的彩色口音呢?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题