0

本当に必要なのは、自分の3つの子のうち1つだけをScrollViewラップする必要がありますが、3番目の子をラップしようとすると、直接の子を1つしかホストできないというエラーが発生します。LinearLayoutViewFlipperScrollView

回避策はありますか?

<ViewFlipper>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

        <ScrollView android:id="@+id/ScrollView01"
             android:layout_width="fill_parent"
             android:layout_height="110dp">

      <!--- Stuff --->

        </ScrollView>
    </LinearLayout>
</ViewFlipper>
4

1 に答える 1

1

ScrollView確かに - あなたの aFrameLayoutの1 つの子を作るLinearLayoutRelativeLayout、その中にコンテンツを入れてください。

于 2010-11-23T05:42:09.957 に答える