-1
私のアプリケーションでは、Androidアプリケーションを開発しています。NavigationViewを使用しましたが、メインのXMLファイルにInflateExceptionが表示され、アプリケーションが閉じられます。android.view.inflateexceptionバイナリxmlファイルの行
私のコードは、この問題を解決するためにどのようにここに
<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>
のですか?
完全なStaceトレースでコードを投稿してください。 –
には、stacktrace、drawer_view.xmlおよびnav_headerが必要です。 xml ..... – Opiatefuchs
あなたは部分的な情報しか与えませんでした。あなたのlogcatと他のxmlファイルを投稿する – AADProgramming