首页 > 解决方案 > 在当前主题中找不到 id 为 0x7f15fda1 的样式

问题描述

为什么我会收到这样的错误“无法在当前主题中找到 id 为 0x7f15fda1 的样式”

LinearLayout 
    android:id="@+id/linear"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

代码:

`在当前主题中找不到 id 为 0x7f15fda1 的样式'

    <com.google.android.material.textfield.TextInputLayout
        style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="Username"
        android:layout_marginTop="10dp"
        android:layout_marginBottom="10dp">

        <androidx.appcompat.widget.AppCompatEditText
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:inputType="text" />
    </com.google.android.material.textfield.TextInputLayout>

</LinearLayout>`

标签: javaandroid

解决方案


推荐阅读