0

我真的只需要我ScrollView的 3 中LinearLayout的1 个包裹ViewFlipper,但我尝试将它包裹在我的第三个孩子周围,它给了我ScrollView只能容纳一个直接孩子的错误。

任何解决方法?

<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当然 - 制作你的 a的一个孩子FrameLayoutLinearLayout或者RelativeLayout将内容放入其中。

于 2010-11-23T05:42:09.957 回答