我想知道如何在一个xml文件中创建多个水平滚动视图。这是对普通滚动视图的简单调整,还是复杂得多?
谢谢
发布于 2013-02-26 02:53:07
是的,您应该能够在xml上放入多个滚动视图。您可以尝试执行以下操作:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayoutRight" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical">
<HorizontalScrollView android:id="@+id/scrollView1" android:background="#000" android:layout_width="match_parent" android:layout_height="300dp">
</HorizontalScrollView>
<HorizontalScrollView android:id="@+id/scrollView1" android:background="#f00" android:layout_width="match_parent" android:layout_height="300dp">
</HorizontalScrollView>
</LinearLayout>https://stackoverflow.com/questions/15073804
复制相似问题