title: Commom layout with same OnClickListener
body: <p>I have this Layout common_header.xml  which has some buttons.I want to include it in every activity and perform OnClickListener from only one activity.I dont want to use BaseActivity for above operations and extend from it because i have to extend my activities from other activities such as FragmentActivity.I want code reuse in my project.
   I have tried to include this common_header.xml in my other layout but it desnot work for me,i dont know the reason.followig is my common_header.xml file.</p>
  
  <pre><code>&lt;RelativeLayout
      android:id="@+id/layout_top_bar"
      android:orientation="horizontal"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_alignParentTop="true"
      android:clickable="true"
      android:background="@color/titlebarBackground"
      &gt;
  
      &lt;ImageButton
          android:id="@+id/btn_menu"
          android:layout_width="52dp"
          android:layout_height="52dp"
          android:layout_alignParentLeft="true"
          android:layout_alignParentTop="true"
          android:contentDescription="menu"
          android:background="@drawable/borderless_button_unselected"
          android:src="@drawable/menu"
          /&gt;
  
      &lt;TextView
          android:id="@+id/txt_title"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerVertical="true"
          android:layout_toLeftOf="@+id/btn_account"
          android:textColor="@color/titlebarForeground"
          android:textSize="16sp"
          android:text="@string/signin"
          android:background="@drawable/transparent_signin_selector"
          /&gt;
  
      &lt;ImageButton
          android:id="@+id/btn_account"
          android:layout_width="52dp"
          android:layout_height="52dp"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:contentDescription="menu"
          android:background="@drawable/borderless_button_unselected"
          android:src="@drawable/account"
          /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>