title: BottomNavigationView not inflating
body: <p>I'm trying to inflate a BottomNavigationView in <code>activity_main.xml</code> but to no avail.</p>
  <p>Here's my <code>bottom_navigation.xml</code> in the <code>menu</code> resource directory:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;menu xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
  
      &lt;item
          android:id=&quot;nav_library&quot;
          android:icon=&quot;@drawable/svg_library&quot;
          android:title=&quot;Library&quot; /&gt;
  
      &lt;item
          android:id=&quot;nav_search&quot;
          android:icon=&quot;@drawable/svg_search&quot;
          android:title=&quot;Search&quot; /&gt;
  
      &lt;item
          android:id=&quot;nav_liked&quot;
          android:icon=&quot;@drawable/svg_heart&quot;
          android:title=&quot;Liked&quot; /&gt;
  
  &lt;/menu&gt;
  </code></pre>
  <p>And here's my <code>activity_main.xml</code>:</p>
  
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;&gt;
  
      &lt;com.google.android.material.bottomnavigation.BottomNavigationView
          android:id=&quot;@+id/nav_bar&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentBottom=&quot;true&quot;
          app:menu=&quot;@menu/bottom_navigation&quot;
          android:background=&quot;?android:attr/windowBackground&quot; /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p>It seems that <code>android:layout_height=&quot;wrap_content&quot;</code> does not detect the icons nor the title of the menu and as such, the height and width of the navigation bar are both 0.</p>
  <p><a href="https://i.stack.imgur.com/SRNT9.png" rel="nofollow noreferrer">Here's an image with the <code>wrap_content</code> attribute.</a> (Not enough rep for an embed)</p>
  <p>Please advise.</p>
  <p>P.S This is my first question on Stack Overflow, so my question formatting might not be the best.</p>