我对以下问题的答案看了很多,但我找不到合适的解决方案(既不“不可能”)。我不想要双向ScrollView!
我想要的就是拥有这样的东西:
<ScrollView android:orientation="vertical" android:layout_height="match_parent">
<ScrollView android:orientation="horizontal" android:layout_height="300px" />
</ScrollView>
如果我这样做(使用所需的布局属性),我的垂直ScrollView可以滚动,但不能滚动。我错过了一些重要的东西,或者说库存控制是不可能的吗?
谢谢!
答案 0 :(得分:2)
使用
<HorizontalScrollView
android:id="@+id/my_scrollview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_marginBottom="72dip"
android:layout_below="@+id/Tab2Headline"
android:scrollbars="horizontal" >
答案 1 :(得分:0)
您告诉我们您不需要双向滚动视图。 然后你说你的例子给你你想要的垂直,但不是你想要的水平滚动。
咦?
然后“回答”是完全删除垂直滚动,只是让它水平滚动。
咦?