Looks like TextInputLayout
just doesn't work inside ViewPager
.
The error is:
Error inflating class android.support.design.widget.TextInputLayout
Appcompat
and Design library
added. Theme
is correct.
I use PageAdapter
to inflate and populate ViewPager
.
The TextInputLayout
view inflates just fine in all other parts of the application.
The layout
I inflate for the ViewPager
.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.design.widget.TextInputLayout
android:id="@+id/text_input_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/edit_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="My Edit Text" />
</android.support.design.widget.TextInputLayout>
</LinearLayout>