我试图把多个TextViews
放在一个ScrollView
以下的eachother中,但是当我这样做时,它会让我的应用程序崩溃。我怎么能在海誓山盟之下两次放置相同的文字?Android XML滚动视图
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="20dp"
android:layout_marginBottom="20dp"
android:layout_below="@id/linear">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/lorem_ipsum"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/lorem_ipsum"/>
</ScrollView>
你可以发布你的完整的XML文件? –
您只能在'ScrollView'中放置一个孩子,以便使用'LinearLayout'或任何其他容器 –