我一直在寻找以下问题的答案,但我没有找到一个适当的解决方案(也没有“它不可能”)。我不想要双向ScrollView!
我想要的就是这样的东西:
<ScrollView android:orientation="vertical" android:layout_height="match_parent">
<ScrollView android:orientation="horizontal" android:layout_height="300px" />
</ScrollView>如果我这样做(使用所需的布局属性),我将获得可滚动的垂直ScrollView,但不能滚动水平not。我是不是遗漏了什么重要的东西,或者这是不可能的库存控制?
谢谢!
发布于 2011-03-29 23:16:01
使用
<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" >发布于 2012-01-19 23:07:16
您告诉我们您不想要双向滚动视图。然后你说你的例子给了你你想要的垂直滚动,而不是你想要的水平滚动。
哈?
那么“答案”就是完全去掉垂直滚动,只让它水平滚动。
哈?
https://stackoverflow.com/questions/5474775
复制相似问题