To implement a layout with a ViewPager or FragmentTabHost, place the ScrollView as the first child of DragScrollDetailsLayout, followed by a container (like a LinearLayout) that holds the FragmentTabHost and its corresponding FrameLayout content area.
<com.snail.labaffinity.view.DragScrollDetailsLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="100dp"
android:background="#98ff0000"
android:text="pull up to show more"/>
</LinearLayout>
</ScrollView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v4.app.FragmentTabHost
android:id="@+id/tablayout"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</android.support.v4.app.FragmentTabHost>
<FrameLayout
android:id="@+id/content"
android:layout_width="match_parent"
android:layout_height="match_parent">
</FrameLayout>
</LinearLayout>
</com.snail.labaffinity.view.DragScrollDetailsLayout>