i have to use view pager and horizontal scroll view .the view pager contains three fragments. when we swipe it moves according to swipe.in each fragment has unique titles say like one , two, three.when we swipe the view pager, title also get scroll according to the fragments. for this i have use it is not working properly...horizontal scroll view text(one,two,three) not scroll..only view pager get scrolled any solution?
<RelativeLayout>
<android.support.v4.view.ViewPager
android:id="@+id/myviewpager"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v4.view.PagerTitleStrip
android:id="@+id/titlestrip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone" />
</android.support.v4.view.ViewPager>
<HorizontalScrollView
android:id="@+id/hori"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="50dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="one"
android:textSize="28sp"
android:layout_marginLeft="150dp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="100dp"
android:text="two"
android:textSize="28sp"
android:textStyle="bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="100dp"
android:text="three"
android:textSize="28sp"
android:textStyle="bold" />
</LinearLayout>
</HorizontalScrollView>
</RelativeLayout>