Reputation: 624
i'm using Android Studio.
When i'm tried to run my application i got the following error:
android.view.InflateException: Binary XML file line #23: Error inflating class android.support.v7.design.widget.TextInputLayout
My .xml file:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fitsSystemWindows="true"
android:fillViewport="false">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="56dp"
android:paddingLeft="24dp"
android:paddingRight="24dp">
<android.support.v7.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp">
<EditText android:id="@+id/input_email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:hint="Email" />
</android.support.v7.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp">
<EditText android:id="@+id/input_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:hint="Password"/>
</android.support.design.widget.TextInputLayout>
</LinearLayout>
My compiled sdk version is 22.
Any suggestions please?
Thanks!!
Upvotes: 0
Views: 2917
Reputation: 3914
It should not be
android.support.v7.design.widget.TextInputLayout
It should be
android.support.design.widget.TextInputLayout
Upvotes: 2
Reputation: 34532
You should use android.support.design.widget.TextInputLayout
without the v7
.
Upvotes: 2