-1
Je développe l'application android.Dans mon application j'ai utilisé NavigationView. Mais il afficher InflateException dans le fichier XML principal et l'application se ferme.android.view.inflateexception binaire xml ligne de fichier
mon code est ici
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent" xmlns:app1="http://schemas.android.com/apk/res/com.example.xpressownernew">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<!-- The ActionBar -->
<include
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<!-- The main content view -->
<FrameLayout
android:id="@+id/flContent"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
<!-- The navigation drawer -->
<android.support.design.widget.NavigationView
android:id="@+id/nvView"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="@android:color/white"
app:menu="@menu/drawer_view"
app:headerLayout="@layout/nav_header"
/>
</android.support.v4.widget.DrawerLayout>
Comment résoudre ce problème?
Postez votre code avec Stace Trace complet. –
besoin stacktrace, drawer_view.xml et votre nav_header. xml ..... – Opiatefuchs
vous avez seulement donné des informations partielles. Publiez votre logcat et d'autres fichiers xml – AADProgramming