• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps creating vertical scrollbar

tallybh

Lurker
Hi!
I am trying to create a vertical scroller between different fragment on a landscape view.
this is my code:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scrollbars="vertical" >

<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<fragment
android:id="@+id/fragment2"
android:name="com.kevtech.dup.frag1"
android:layout_width="wrap_content"
android:layout_height="match_parent" />

<fragment
android:id="@+id/fragment1"
android:name="com.kevtech.dup.frag2"
android:layout_width="wrap_content"
android:layout_height="match_parent" />

<fragment
android:id="@+id/fragment3"
android:name="com.kevtech.dup.frag3"
android:layout_width="wrap_content"
android:layout_height="match_parent" />
</LinearLayout>
</ScrollView>

the scroll bar is horizontal why?
TX
Tally
 
Back
Top Bottom