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

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

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

  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@color/white"
  7. tools:context=".LoginActivity"
  8. **android:theme="@style/Theme.MaterialComponents.Light.NoActionBar"**
  9. android:padding="20dp">

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

暂无答案!

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

相关问题