android.view.InflateException:二进制XML文件行#0:错误膨胀类android.support.design.widget.TextInputEditText 我得到这个例外lolipop和pre-lolipop安卓设备,但在邮政lolipop设备上它工作正常。我的代码是:
<android.support.design.widget.TextInputLayout
android:id="@+id/textInputLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/my_toolbar"
>
<android.support.design.widget.TextInputEditText
android:id="@+id/input_description"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/description"
android:textSize="@dimen/text_size_medium"
android:background="@drawable/edittext_background"
android:lines="3"
android:maxLines="3"
android:maxLength="100"
android:padding="5dp"
android:textColor="@color/black"/>
</android.support.design.widget.TextInputLayout>