title: How to add Action Bar in relativeLayout
body: <p>Actually i want to put Action Bar menu into my layout given below, i am no getting how to put the Action  bar menu into it. Can anyone help me in fixing this problem...</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:paddingLeft="16dp"
  android:paddingRight="16dp"
  android:id="@id/action_bar"
  &gt;
  
  
  &lt;Button
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Enable Pin"
      android:id="@+id/button"
      android:layout_marginBottom="140dp"
      android:layout_alignParentBottom="true"
      android:layout_alignEnd="@+id/button2"
      android:layout_alignStart="@+id/button2" /&gt;
  
  &lt;Button
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Enable Pattern"
      android:id="@+id/button2"
      android:layout_alignParentBottom="true"
      android:layout_centerHorizontal="true"
      android:layout_marginBottom="51dp" /&gt;
   &lt;/RelativeLayout&gt;
  </code></pre>