title: Recyclerview Horizontal scroll,How to display one item at a scroll like pager
body: <p>I have to implement both vertical and horizontal scroll using recyclerView and pragmatically I can change the recyclerview orientation by using LinearLayoutManager to set the orientation.The problem is when Horizontal scroll its showing next item in the same page.I should only show one item at a time when we scroll should display next Item please help me to fix this or any suggetion.</p>
  
  <pre><code>**main.xml**
  
  &lt;LinearLayout
      android:id="@+id/recyler_container"
      android:layout_width="match_parent"
      android:layout_weight="1"
      android:layout_height="0dp"&gt;
  &lt;android.support.v7.widget.RecyclerView
      android:id="@+id/vertical_recycler_view"
      android:layout_below="@id/slelect_scroll"
      android:background="#fff"
      android:layout_width="match_parent"
  android:layout_height="wrap_content"/&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>**row.xml**
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       android:orientation="horizontal"
       android:layout_width="match_parent"
       android:background="#3e56ed"
       android:layout_height="wrap_content"&gt;
  
  
  &lt;TextView
      android:textColor="#FFF"
      android:textSize="18sp"
      android:padding="16dp"
      android:id="@+id/txtView"
      android:text="sample text"
      android:layout_weight="1"
      android:layout_alignParentLeft="true"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" /&gt;
  
  &lt;TextView
      android:id="@+id/txtView2"
      android:textColor="#FFF"
      android:textSize="18sp"
      android:padding="16dp"
      android:layout_marginLeft="20dp"
      android:layout_weight=".1"
      android:background="#000"
      android:layout_alignParentRight="true"
      android:text="sample text234"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/JSiT1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JSiT1.png" alt="Verical SCroll"></a></p>
  
  <p><a href="https://i.stack.imgur.com/OhdQf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/OhdQf.png" alt="Horizontal scroll"></a></p>