为应用程序设置自定义主题时 TextInputLayout 崩溃 [英] TextInputLayout Crashing when setting Custom Theme for App
本文介绍了为应用程序设置自定义主题时 TextInputLayout 崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以下代码与轮廓输入框完美配合.
<com.google.android.material.textfield.TextInputEditTextandroid:id="@+id/et_notes"android:fontFamily="sans-serif-black"android:layout_width="match_parent"android:layout_height="wrap_content"/></com.google.android.material.textfield.TextInputLayout>
我在整个应用程序中设置了自定义字体.按以下代码设置后,它崩溃了.以下样式用于应用主题.