I have ViewPager with ListView below it in Linear Layout. Its working fine however when I am try to scroll only ListView scrolls while ViewPager remains static.
This is my XML code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="150dp"
android:isScrollContainer="true" />
<ListView
android:id="@+id/categorylist"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
I want ViewPager also to scroll and move upward rather than remaining static.