android 两个ScrollViews嵌套/垂直ScrollView中的小水平ScrollView
我已经寻找了很多以下问题的答案,但没有找到合适的解决方案(也不是“不可能”)。我不想要双向 ScrollView!
我想要的就是拥有类似的东西:
<ScrollView android:orientation="vertical" android:layout_height="match_parent">
<ScrollView android:orientation="horizontal" android:layout_height="300px" />
</ScrollView>
如果我这样做(使用所需的布局属性),我的垂直 ScrollView 可以滚动,但水平滚动视图不行。我是否遗漏了一些重要的东西,或者库存控制根本不可能做到这一点?
谢谢你!
I have looked a lot for the answer to the following question but I did not find a proper solution (neither "its impossible"). I don't want a two-way ScrollView!
All I want is having something like that:
<ScrollView android:orientation="vertical" android:layout_height="match_parent">
<ScrollView android:orientation="horizontal" android:layout_height="300px" />
</ScrollView>
if I do this (with the required layout attributes) I get my vertical ScrollView scrollable but not the horizontal one. Am I missing something important or is that just not possible with the stock controls?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用
use
您告诉我们您不想要双向滚动视图。
然后你说你的例子给了你想要的垂直滚动,但没有给你想要的水平滚动。
啊?
那么“答案”就是完全删除垂直滚动,只让它水平滚动。
啊?
You tell us that you do NOT want a 2-way scrollview.
Then you say your example gives you your desired vertical, but not your desired horizontal scrolling.
Huh?
Then the "answer" is to remove the vertical scrolling altogether, and just have it scroll horizontally.
Huh?