title: Implementing searchview custom toolbar
body: <p>I have a toolbar that i created by myself, a custom toolbar and want to place a searchview above so everytime i click the icon it replaces my toolbar.</p>
  
  <p><strong>My Custom toolbar:</strong></p>
  
  <pre><code>&lt;android.support.v7.widget.Toolbar
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/my_toolbar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@color/emerald"&gt;
      &lt;ImageView
          android:id="@+id/arrow_left"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="left"
          android:layout_weight="0"
          android:src="@drawable/ic_002_keyboard_left_arrow_button"
          android:onClick="previousActivity"
          android:tint="@color/white"/&gt;
      &lt;com.example.afcosta.inesctec.pt.android.Helpers.NexusBoldTextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textColor="@color/white"
          android:layout_gravity="left"
          android:layout_marginLeft="25dp"
          android:id="@+id/toolbar_title"
          android:textSize="@dimen/toolbar_title" /&gt;
      &lt;ImageView
          android:id="@+id/user_ic"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="right"
          android:layout_weight="0"
          android:src="@drawable/ic_user"
          android:onClick="userProfile"
          android:layout_marginRight="25dp"
          android:tint="@color/white"/&gt;
      &lt;ImageView
          android:id="@+id/user_ic2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="right"
          android:layout_weight="0"
          android:src="@drawable/ic_search_black_24dp"
          android:tintMode="@color/white"
          android:onClick="userProfile"
          android:layout_marginRight="25dp"
          android:tint="@color/white"/&gt;
  
  
  
  &lt;/android.support.v7.widget.Toolbar&gt;
  </code></pre>
  
  <p><strong>i include it on other activities like this:</strong></p>
  
  <pre><code>   &lt;include
          layout="@layout/custom_toolbar"
          android:id="@+id/my_toolbar"
          tools:layout_constraintTop_creator="1"
          tools:layout_constraintLeft_creator="1"
          app:layout_constraintTop_toTopOf="parent"
          tools:layout_editor_absoluteX="0dp" /&gt;
  </code></pre>
  
  <p>now i want to use the searchview on this custom toolbar, but i can't even add it, any help?</p>