title: How to add Search bar with edit text in toolbar
body: <p>I want to add search bar with edit text in toolbar like below image
  <a href="https://i.stack.imgur.com/V9isG.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/V9isG.jpg" alt="enter image description here"></a></p>
  
  <p>My toolbar.xml:-</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:local="http://schemas.android.com/apk/res-auto"
      android:id="@+id/toolbar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:minHeight="?attr/actionBarSize"
      android:background="?attr/colorPrimary"
      local:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
      local:popupTheme="@style/ThemeOverlay.AppCompat.Light" &gt;
  
      &lt;EditText
          android:id="@+id/searchEditText"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          /&gt;
  
      &lt;/android.support.v7.widget.Toolbar&gt;
  </code></pre>
  
  <p>After adding edit text in toolbar my toolbar show like this:-</p>
  
  <p><a href="https://i.stack.imgur.com/fQcoL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fQcoL.png" alt="enter image description here"></a></p>