Android - TabHost innen ScrollView

Ich Schreibe eine app, die verschachtelten Registerkarten. Denn zwei Sätze von tabs besetzen, ein bisschen Platz und in der Regel wegen der Natur der Inhalte, die ich würde gerne die ganze innere TabHost in einer scrollbaren Struktur. Ich kann tabcontent der äußeren Tätigkeit FrameLayout, LinearLayout, auch ViewFlipper; wenn ich versuche, es zu machen, ScrollView, stürzt das Programm ab.

<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <LinearLayout
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />
        <ScrollView
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"/>
    </LinearLayout>

</TabHost>

Also anscheinend TabHost gerne Leben in nicht scrollbaren frames. Gibt es eine Möglichkeit, zu gehen, um dieses, ohne eine ganze Menge Durcheinander?

InformationsquelleAutor Phonon | 2011-01-27
Schreibe einen Kommentar