How do you set tab view to scroll?

Posted by DrogoNevets on Stack Overflow See other posts from Stack Overflow or by DrogoNevets
Published on 2010-03-22T14:13:08Z Indexed on 2010/03/22 14:51 UTC
Read the original article Hit count: 910

Filed under:
|
|

I have managed to set up a tabbed view for my app (woo!)

and have the following xml for the UI

<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<LinearLayout
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:padding="5dp">
    <TabWidget
        android:id="@android:id/tabs"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" 
    />
    <FrameLayout
        android:id="@android:id/tabcontent"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
    />
</LinearLayout>

    <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="vertical"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent">
    <Spinner android:id="@+id/areaSpinner"
             android:layout_width="fill_parent"
             android:layout_height="@dimen/one_row"
     />
     <Spinner android:id="@+id/cragSpinner"
              android:layout_width="fill_parent"
              android:layout_height="@dimen/one_row"
     />
     <Spinner android:id="@+id/routeSpinner"
              android:layout_width="fill_parent"
              android:layout_height="@dimen/one_row"
     />
     <DatePicker android:id="@+id/dateClimbed"
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
     />
     <Spinner android:id="@+id/styleSpinner"
              android:layout_width="fill_parent"
              android:layout_height="@dimen/one_row"
     />
     <Spinner android:id="@+id/detailsSpinner"
              android:layout_width="fill_parent"
              android:layout_height="@dimen/one_row"
     />
     <TextView android:id="@+id/climbNotes"
             android:layout_width="fill_parent"
             android:layout_height="@dimen/three_row"
   />
</LinearLayout>

yet am seemingly unable to scroll down to see the rest of the form (cuts off at one of the spinners, why is this? and how do i fix it?

© Stack Overflow or respective owner

Related posts about android

Related posts about Development