title: Using png icon as drawable in NavigationDrawer
body: <p>and thanks in advance!</p>
  
  <p>I have trouble changing icons in NavigationDrawer, I'm using a png image as drawable in NavigationDrawer but it causes InflaterException. Can I use png's or Android only accepts XML drawables?</p>
  
  <p>Here is the error, and the code! Any advice will be appreciated!</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;group android:checkableBehavior="single"&gt;
      &lt;item
          android:id="@+id/nav_cursos"
          android:icon="@drawable/ic_cursos"
          android:title="Cursos" /&gt;
      &lt;item
          android:id="@+id/nav_gallery"
          android:icon="@drawable/ic_menu_gallery"
          android:title="Localización" /&gt;
      &lt;item
          android:id="@+id/nav_slideshow"
          android:icon="@drawable/ic_menu_slideshow"
          android:title="Contacto" /&gt;
      &lt;item
          android:id="@+id/nav_manage"
          android:icon="@drawable/ic_menu_manage"
          android:title="Tools" /&gt;
  &lt;/group&gt;
  
  &lt;item android:title="Communicate"&gt;
      &lt;menu&gt;
          &lt;item
              android:id="@+id/nav_share"
              android:icon="@drawable/ic_menu_share"
              android:title="animaciones" /&gt;
          &lt;item
              android:id="@+id/preferencias"
              android:icon="@drawable/ic_menu_send"
              android:title="preferencias" /&gt;
      &lt;/menu&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>I have tried placing directly image on drawable, and changing drawables.xml too. Here:
  
  &lt;resources xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item name="ic_cursos" type="drawable"&gt;@drawable/ic_cursos&lt;/item&gt;
  &lt;item name="ic_menu_gallery" type="drawable"&gt;@android:drawable/ic_menu_gallery&lt;/item&gt;
  &lt;item name="ic_menu_slideshow" type="drawable"&gt;@android:drawable/ic_menu_slideshow&lt;/item&gt;
  &lt;item name="ic_menu_manage" type="drawable"&gt;@android:drawable/ic_menu_manage&lt;/item&gt;
  &lt;item name="ic_menu_share" type="drawable"&gt;@android:drawable/ic_menu_share&lt;/item&gt;
  &lt;item name="ic_menu_send" type="drawable"&gt;@android:drawable/ic_menu_send&lt;/item&gt;
  </code></pre>
  
  <p></p>
  
  <p>But it keeps failing. Here the error:</p>
  
  <pre><code>Process: com.example.dani.provandodrawer, PID: 28495
  
  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.dani.provandodrawer/com.example.dani.provandodrawer.MainActivity}: android.view.InflateException: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView
  
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
  at android.app.ActivityThread.access$800(ActivityThread.java:135)
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
  at android.os.Handler.dispatchMessage(Handler.java:102)
  at android.os.Looper.loop(Looper.java:136)
  at android.app.ActivityThread.main(ActivityThread.java:5001)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:811)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:627)
  at dalvik.system.NativeStart.main(Native Method)
  Caused by: android.view.InflateException: Binary XML file line #16: Error inflating class android.support.design.widget.NavigationView
  at android.view.LayoutInflater.createView(LayoutInflater.java:620)
  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
  at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
  at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
  at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
  at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:256)
  at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109)
  at com.example.dani.provandodrawer.MainActivity.onCreate(MainActivity.java:40)
  at android.app.Activity.performCreate(Activity.java:5231)
  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 
  at android.app.ActivityThread.access$800(ActivityThread.java:135) 
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
  at android.os.Handler.dispatchMessage(Handler.java:102) 
  at android.os.Looper.loop(Looper.java:136) 
  at android.app.ActivityThread.main(ActivityThread.java:5001) 
  at java.lang.reflect.Method.invokeNative(Native Method) 
  at java.lang.reflect.Method.invoke(Method.java:515) 
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:811) 
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:627) 
  at dalvik.system.NativeStart.main(Native Method) 
  Caused by: java.lang.reflect.InvocationTargetException
  at java.lang.reflect.Constructor.constructNative(Native Method)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  at android.view.LayoutInflater.createView(LayoutInflater.java:594)
  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 
  at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
  at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
  at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
  at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:256) 
  at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109) 
  at com.example.dani.provandodrawer.MainActivity.onCreate(MainActivity.java:40) 
  at android.app.Activity.performCreate(Activity.java:5231) 
  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) 
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 
  at android.app.ActivityThread.access$800(ActivityThread.java:135) 
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
  at android.os.Handler.dispatchMessage(Handler.java:102) 
  at android.os.Looper.loop(Looper.java:136) 
  at android.app.ActivityThread.main(ActivityThread.java:5001) 
  at java.lang.reflect.Method.invokeNative(Native Method) 
  at java.lang.reflect.Method.invoke(Method.java:515) 
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:811) 
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:627) 
  at dalvik.system.NativeStart.main(Native Method) 
  Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f02007f a=2 r=0x7f02007f}
  at android.content.res.Resources.loadDrawable(Resources.java:2068)
  at android.content.res.Resources.getDrawable(Resources.java:700)
  at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:323)
  at android.support.v7.widget.TintManager.getDrawable(TintManager.java:147)
  at android.support.v7.view.menu.MenuItemImpl.getIcon(MenuItemImpl.java:421)
  at android.support.design.internal.NavigationMenuPresenter$NavigationMenuAdapter.prepareMenuItems(NavigationMenuPresenter.java:485)
  at android.support.design.internal.NavigationMenuPresenter$NavigationMenuAdapter.update(NavigationMenuPresenter.java:426)
  at android.support.design.internal.NavigationMenuPresenter.updateMenuView(NavigationMenuPresenter.java:113)
  at android.support.design.widget.NavigationView.inflateMenu(NavigationView.java:233)
  at android.support.design.widget.NavigationView.&lt;init&gt;(NavigationView.java:168)
  at android.support.design.widget.NavigationView.&lt;init&gt;(NavigationView.java:94)
  at java.lang.reflect.Constructor.constructNative(Native Method) 
  at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
  at android.view.LayoutInflater.createView(LayoutInflater.java:594) 
  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696) 
  at android.view.LayoutInflater.rInflate(LayoutInflater.java:755) 
  at android.view.LayoutInflater.inflate(LayoutInflater.java:492) 
  at android.view.LayoutInflater.inflate(LayoutInflater.java:397) 
  at android.view.LayoutInflater.inflate(LayoutInflater.java:353) 
  at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:256) 
  at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:109) 
  at com.example.dani.provandodrawer.MainActivity.onCreate(MainActivity.java:40) 
  at android.app.Activity.performCreate(Activity.java:5231) 
  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) 
  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) 
  at android.app.ActivityThread.access$800(ActivityThread.java:135) 
  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 
  at android.os.Handler.dispatchMessage(Handler.java:102) 
  at android.os.Looper.loop(Looper.java:136) 
  at android.app.ActivityThread.main(ActivityThread.java:5001) 
  at java.lang.reflect.Method.invokeNative(Native Method) 
  at java.lang.reflect.Method.invoke(Method.java:515) 
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:811) 
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:627) 
  at dalvik.system.NativeStart.main(Native Method)
  </code></pre>