title: how to use boardView and nested Viewpager altogether?
body: <p><strong>Edit--</strong>
  <strong>i guess this structure of what i thought was wierd a bit so i decided not to code like that and just follow the rules that the library is saying.( use 1 fragment and that it ) --</strong></p>
  
  <p>I'm using Board Library (Reference : <a href="https://github.com/woxblom/DragListView" rel="nofollow noreferrer">https://github.com/woxblom/DragListView</a> )</p>
  
  <p><strong>board_layout.xml(Root Fragment)</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;com.woxthebox.draglistview.BoardView
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/board_view"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
   &lt;android.support.v4.view.ViewPager
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/viewPager"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="bottom"
      android:clipToPadding="false"
      android:overScrollMode="never"
      android:paddingBottom="30dp"
      android:paddingEnd="@dimen/card_padding"
      android:paddingLeft="@dimen/card_padding"
      android:paddingRight="@dimen/card_padding"
      android:paddingStart="@dimen/card_padding" &gt;
      &lt;/android.support.v4.view.ViewPager&gt;
     &lt;/com.woxthebox.draglistview.BoardView&gt;
  </code></pre>
  
  <p><strong>fragment_adapter.xml</strong></p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;android.support.v7.widget.CardView 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
   android:id="@+id/card_view"
   app:cardUseCompatPadding="true"
   android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:layout_gravity="center"&gt;
   &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
      &lt;TextView
          android:textSize="20dp"
          android:text="Story Id :"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" /&gt;
  
      &lt;TextView
          android:id="@+id/txt_story_id"
          android:text="-1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" /&gt;
      &lt;TextView
          android:textSize="20dp"
          android:text="Count :"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" /&gt;
  
      &lt;TextView
          android:id="@+id/txt_story_count"
          android:text="-1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" /&gt;
      &lt;android.support.v7.widget.RecyclerView
          android:id="@+id/recycler_view"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
      &lt;/android.support.v7.widget.RecyclerView&gt;
      &lt;/LinearLayout&gt;
   &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>
  
  <p><strong>recycler_item.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;com.chauthai.swipereveallayout.SwipeRevealLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:id="@+id/swipe_layout"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:padding="10dp"
  app:dragEdge="right"
  app:mode="same_level"&gt;
  
  &lt;FrameLayout
      android:id="@+id/delete_layout"
      android:layout_width="wrap_content"
      android:layout_height="70dp"
      android:background="#ffcc0000"&gt;
  
      &lt;TextView
          android:layout_width="70dp"
          android:layout_height="match_parent"
          android:gravity="center"
          android:background="@android:color/holo_red_dark"
          android:textColor="@android:color/white"
          android:text="Delete"/&gt;
  &lt;/FrameLayout&gt;
  
  &lt;FrameLayout
      android:id="@+id/front_layout"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="#ffb9b9"&gt;
  
     &lt;include layout="@layout/vertical_recycler_item" /&gt;
    &lt;/FrameLayout&gt;
    &lt;/com.chauthai.swipereveallayout.SwipeRevealLayout&gt;
  </code></pre>
  
  <p><strong>vertical_recycler_item.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:id="@+id/card"
  android:padding="10dp"&gt;
  
   &lt;LinearLayout
      android:orientation="vertical"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
  &lt;TextView
     android:id="@+id/txt_blood_type"
     android:text="bloodType"
     android:layout_width="wrap_content"
     android:layout_height="wrap_content" /&gt;
  &lt;TextView
      android:id="@+id/txt_gender"
      android:text="gender"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" /&gt;
  &lt;TextView
      android:id="@+id/txt_hobby"
      android:text="hobby"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" /&gt;
  
  &lt;/LinearLayout&gt;
  &lt;LinearLayout
      android:orientation="horizontal"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
      &lt;ImageView
          android:visibility="gone"
          android:src="@android:drawable/ic_notification_overlay"
          android:id="@+id/arrow_icon"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" /&gt;
       &lt;TextView
           android:id="@+id/txt_move_story"
           android:visibility="gone"
           android:text="move!"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content" /&gt;
  &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and i'm gonna make viewPager which exteneded FragmentStatePagerAdapter with multiple fragments.</p>
  
  <p>but got an <strong>error</strong> </p>
  
  <pre><code>Caused by: android.view.InflateException: Binary XML file line #0: 
  HorizontalScrollView can host only one direct child
  
  Caused by: java.lang.IllegalStateException: HorizontalScrollView can host 
  only one direct child
  </code></pre>
  
  <p>i don't know what is the problem here. 
  please help me thank you.    </p>