title: How to add buttons to navigation drawer menu?
body: <p>I want to add a button to my navigation drawer menu, like so:</p>
  
  <p><strong>desired result</strong>:</p>
  
  <p><img src="https://i.imgur.com/DdcQq5h.png" alt="Image: desired result"></p>
  
  <p>I tried achieving this using the actionLayout parameter, but I seem to only be able to use some space on the right, not the entire width:</p>
  
  <p><strong>current result</strong>:</p>
  
  <p><img src="https://i.imgur.com/gnPgeRs.png" alt="Image: current result"></p>
  
  <p>The title seems to be occupying the space on the left.
  But I want to add a button with full width like in the first picture.</p>
  
  <p>My current code:</p>
  
  <pre><code>...
  
  &lt;item
                      android:id="@+id/nav_login"
                      android:title=""
                      app:actionLayout="@layout/button_login"
                      app:showAsAction="ifRoom"/&gt;
  
  ...
  </code></pre>
  
  <p>button_login.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Button xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical" android:layout_width="match_parent"
      android:background="#0000ff"
      android:text="Login"
      android:textColor="#ffffff"
      android:layout_height="match_parent" /&gt;
  </code></pre>