在我的Android应用程序中,我想使用ScrollView,并且它必须能够在X轴和Y轴上滚动。不使用ScrollView和HorizontalScrollView(如下所示)时,我可以使用一个ScrollView并启用两个滚动条。我所做的如下所示。
<ScrollView
android:id="@+id/srv1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/ll1" >
<HorizontalScrollView
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<LinearLayout
android:id="@+id/linearMain"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:animateLayoutChanges="true"
android:orientation="vertical" >
</LinearLayout>
</HorizontalScrollView>
</ScrollView>
是否可以只使用一个滚动视图并启用两个滚动条?谢谢!