title: How to access a button in toolbar?
body: <p>I have a custome toolbar in application like below there is a button call logout</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v7.widget.Toolbar
      android:id="@+id/toolbar_layout"
      android:layout_width="match_parent"
      android:layout_height="80dp"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:background="@android:color/transparent"&gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginTop="24dp"&gt;
  
          &lt;Button
              android:id="@+id/toolbar_logo_image"
              android:layout_width="32dp"
              android:layout_height="32dp"
              android:layout_marginStart="8dp"
              android:layout_marginEnd="4dp"
              android:layout_centerVertical="true"
              android:background="@drawable/logo" /&gt;
  
          &lt;EditText
              android:id="@+id/toolbar_search_field"
              android:layout_width="280dp"
              android:layout_height="36dp"
              android:textSize="20dp"
              android:hint="Search"
              android:textColorHint="@color/white"
              android:layout_toEndOf="@+id/toolbar_logo_image"
              android:layout_centerVertical="true"
              android:textColor="@android:color/white"
              android:background="@android:color/transparent"
              android:drawablePadding="2dp"
              android:drawableStart="@drawable/ic_search_24dp"
              tools:textColor="@android:color/black"/&gt;
  
      &lt;/RelativeLayout&gt;
  
  &lt;/android.support.v7.widget.Toolbar&gt;
  </code></pre>
  
  <p>I have include this toolbar in my main activity like below</p>
  
  <pre><code>&lt;include
          android:id="@+id/main_page_toolbar"
          layout="@layout/app_bar_toolbar"&gt;
      &lt;/include&gt;
  </code></pre>
  
  <p>in my main activity I have get that toolbar like below</p>
  
  <pre><code>mToolbar = (Toolbar) findViewById(R.id.main_page_toolbar);
  </code></pre>
  
  <p>How can I access the button in that toolbar I want to create a onclickevent
  how can i do that?</p>