title: Binary XML file line #41: Error inflating class fragment
body: <p><strong>Error in Log:</strong> pastebin.com/YLvmkAd4</p>
  <p><strong>FragmentSettings.class:</strong></p>
  <pre><code>package com.android.app;
  
  import android.os.Bundle;
  import android.preference.ListPreference;
  import android.preference.PreferenceFragment;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  
  public class FragmentSettings extends PreferenceFragment {
  
      [..]
  
      @Override
          public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      
              mListPreference = (ListPreference) getPreferenceManager().findPreference(&quot;preference_key&quot;);
      
              return inflater.inflate(R.layout.activity_main, container, false);
          }
  }
  </code></pre>
  <p><strong>activity_main.xml:</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;android.support.v4.widget.DrawerLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      android:id=&quot;@+id/drawer&quot;
      android:layout_width=&quot;match_parent&quot;
      android:fitsSystemWindows=&quot;true&quot;
      android:layout_height=&quot;match_parent&quot;&gt;
  
      &lt;LinearLayout android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          android:orientation=&quot;vertical&quot;&gt;
  
          &lt;include
              android:id=&quot;@+id/toolbar_actionbar&quot;
              layout=&quot;@layout/toolbar_default&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot; /&gt;
  
          &lt;FrameLayout
              android:id=&quot;@+id/container&quot;
              android:layout_width=&quot;match_parent&quot;
              android:clickable=&quot;true&quot;
              android:layout_height=&quot;match_parent&quot;&gt;
              &lt;ListView
                  android:id=&quot;@android:id/list&quot;
                  android:layout_width=&quot;match_parent&quot;
                  android:layout_height=&quot;match_parent&quot;&gt;
              &lt;/ListView&gt;
          &lt;/FrameLayout&gt;
      &lt;/LinearLayout&gt;
      &lt;!-- android:layout_marginTop=&quot;?android:attr/actionBarSize&quot;--&gt;
      &lt;com.android.app.ScrimInsetsFrameLayout
          android:id=&quot;@+id/scrimInsetsFrameLayout&quot;
          android:layout_width=&quot;@dimen/navigation_drawer_width&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:fitsSystemWindows=&quot;true&quot;
          android:layout_gravity=&quot;start&quot;
          app:insetForeground=&quot;#4000&quot;
          android:elevation=&quot;10dp&quot;&gt;
  
          &lt;fragment
              android:id=&quot;@+id/fragment_drawer&quot;
              android:name=&quot;com.android.app.NavigationDrawerFragment&quot;
              android:layout_width=&quot;@dimen/navigation_drawer_width&quot;
              android:layout_height=&quot;match_parent&quot;
              android:fitsSystemWindows=&quot;true&quot;
              app:layout=&quot;@layout/fragment_navigation_drawer&quot; /&gt;
      &lt;/com.android.app.ScrimInsetsFrameLayout&gt;
  
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  <p><strong>Devices:</strong></p>
  <pre><code>Oppo N1, Android 4.2.2
  Samsung Galaxy Note 1, Android 5.1.1
  </code></pre>
  <p><em>I've spent now hours and hours for this error and couldn't find it. The clue is that exactly the same app is working perfectly on Android 5.1.1.</em></p>
  <h1>Additional:</h1>
  <p><strong>MainActivity.java</strong> pastebin.com/a2NZLZFm</p>
  <p><strong>NavigationDrawerFragment.java</strong> pastebin.com/PqTMiPp3</p>
  <p><strong>fragment_navigation_drawer.xml</strong> pastebin.com/eVeAdv17</p>