in my xml style I use a android.support.v4.view.ViewPager within a ScrollView. The problem is that I dont get a scrollbar. The ViewPager itself behaves also strange when I slide from one page to another.
Setting the ScrollView to a fixed height e.g. 1200dip helps to scroll but doesnt show the ViewPager. Here is my xml:
<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/scrollView" android:layout_width="fill_parent" android:layout_height="fill_parent" android:fadeScrollbars="true" android:fillViewport="true" android:scrollbars="vertical" > <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:id="@+id/textView1" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/menu" /> <android.support.v4.view.ViewPager android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="match_parent" > </android.support.v4.view.ViewPager> </RelativeLayout> </ScrollView> thanks in advance