title: display ViewPager (swipe tab) below Relative layout (not attached to ActionBar )android
body: <p>I have layout which has some views (<code>EditText</code> and <code>Textview</code> inside <code>RelativeLayout</code> ) and below I need to display ViewPager ( swipe tab ), but android supports ViewPager attached to ActionBar , which is not required in my case.</p>
  
  <p>Current Result :  ActionBar  -->  ViewPager</p>
  
  <p>Expected Result :  ActionBar  --> RelativeLayout --> ViewPager</p>
  
  <p>If needed code I can post ..</p>
  
  <p>main.xml</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" &gt;
  
      &lt;RelativeLayout
          android:id="@+id/container_top_news"
          android:layout_alignParentTop="true"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"&gt;
  
          &lt;include
              android:id="@+id/top_news"
              layout="@layout/top_news"/&gt;
  
      &lt;/RelativeLayout&gt;
  
      &lt;android.support.v4.view.ViewPager 
      android:id="@+id/pager"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_below="@+id/container_top_news"&gt;
      &lt;/android.support.v4.view.ViewPager&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>top_news.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:orientation="vertical"&gt;
  
       &lt;View
                  android:id="@+id/view1"
                  android:layout_width="match_parent"
                  android:layout_height="1dp"              
                  android:background="@color/border" 
                  android:layout_margin="0dip"/&gt;
      &lt;RelativeLayout
          android:id="@+id/lay_rel_main"
          android:layout_width="match_parent"
          android:layout_height="100dp"
          android:background="@color/title_background"
          &gt;
  
           &lt;ImageView
                  android:id="@+id/img_photo"
                  android:layout_width="150dp"
                  android:layout_height="150dp"
                  android:layout_below="@+id/view2"
                  android:adjustViewBounds="true"               
                  android:background="@drawable/ic_getimage"                            
                  android:padding="10dip" /&gt;
  
           &lt;View
                  android:id="@+id/view2"
                  android:layout_width="1dp"
                  android:layout_height="match_parent"
                 android:layout_toRightOf="@+id/img_photo"
                  android:background="@color/border" 
                  android:layout_margin="0dip"/&gt;
  
  
            &lt;com.rb.lined.edittext.LinedEditText
                  android:id="@+id/edit_story"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"                
                  android:background="@null"
                  android:inputType="textMultiLine|textNoSuggestions"
                  android:padding="10dip" 
                  android:singleLine="false"
                  android:imeOptions="actionNone"
  
                  android:textSize="10sp"
                  android:gravity="top|left"              
                  app:typeface="roboto_condensed"
                 android:layout_toRightOf="@+id/view2"
                 android:minLines="10"/&gt;
  
      &lt;/RelativeLayout&gt;
  
       &lt;View
                  android:id="@+id/view3"
                  android:layout_width="match_parent"
                  android:layout_height="1dp"              
                  android:background="@color/border" 
                  android:layout_margin="0dip"/&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/Mcapi.png" alt="enter image description here"></p>