title: How to properly add custom view to the toolbar?
body: <p>I am using toolbar with extended height (56dp + 80dp) and want to add EditText to the bottom of the toolbar. The problem I have is that EditText DOES NOT expands itself to the right edge, like in picture below:</p>
  
  <p><img src="https://i.stack.imgur.com/h6oBy.jpg" alt="enter image description here"></p>
  
  <p>The code looks like below:</p>
  
  <p><strong>toolbar_edit_text.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;EditText xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/title"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:hint="Title"
      android:singleLine="true" /&gt;
  </code></pre>
  
  <p>Adding layout to toolbar:</p>
  
  <pre><code>LayoutInflater inflater = LayoutInflater.from(mActivity.getActionBarToolbar().getContext());
      mToolbarLayout = (EditText) inflater.inflate(R.layout.toolbar_edit_text, null);
      Toolbar.LayoutParams layoutParams = new Toolbar.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
      layoutParams.gravity = Gravity.BOTTOM;
      mActivity.getActionBarToolbar().addView(mToolbarLayout, layoutParams);
  </code></pre>