java.lang.RuntimeException: Unable to start activity ComponentInfo{mate.files/mate.files.Welcome}: android.view.InflateException: Binary XML file line #67: Binary XML file line #67: Error inflating class Spinner
XML-файл разметки:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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="@drawable/welcome_screen"
tools:context=".Welcome">
<TextView
android:id="@+id/WelcomeTitle"
android:layout_width="372dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="84dp"
android:layout_marginEnd="16dp"
android:text="@string/WelcomeTitle"
android:textAlignment="center"
android:textColor="@color/TextDarkTheme"
android:textSize="@dimen/TitleText"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.125"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/WelcomeMsg"
android:layout_width="371dp"
android:layout_height="wrap_content"
android:layout_marginTop="28dp"
android:fontFamily="sans-serif-medium"
android:hyphenationFrequency="full"
android:text="@string/WelcomeMsg"
android:textAlignment="textStart"
android:textColor="@color/TextDarkTheme"
android:textSize="@dimen/GeneralText"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.45"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/WelcomeTitle" />
<Button
android:id="@+id/nextButton"
style="@style/ButtonTheme"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="112dp"
android:layout_marginEnd="112dp"
android:layout_marginBottom="28dp"
android:background="@color/ButtonDefault"
android:backgroundTint="@color/ButtonDefault"
android:backgroundTintMode="add"
android:longClickable="false"
android:onClick="GetStartedClicked"
android:text="@string/LetsGetStarted"
android:textAllCaps="false"
android:textColor="@color/TextDarkTheme"
android:textSize="@dimen/GeneralText"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:shapeAppearance="@style/ShapeAppearanceOverlay.Material3.Button" />
<Spinner
android:id="@+id/Lang"
android:layout_width="409dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="5dp"
android:entries="@array/Langs"
android:minHeight="48dp"
android:onClick="LangClicked"
android:spinnerMode="dialog"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>