问题描述
我想有与顶部的标题部分和下方的WebView一个LinearLayout中。首标将是短期和web视图可能比屏幕更长更宽。
什么是让水平和垂直滚动的最好方法?嵌套在一个HorizontalScrollView滚动型是一个好主意?
是的,没有。
是的,我的理解是,滚动型
和 HorizontalScrollView
可以嵌套。
没有,AFAIK,无论滚动型
和 HorizontalScrollView
工作与的WebView
。
我建议你有你的的WebView
适合在屏幕上。
I would like to have a linearlayout with a header section on top and a webview below. The header will be short and the webview may be longer and wider than the screen.
What is the best way to get horizontal and vertical scrolling? Is a ScrollView nested inside a HorizontalScrollView a good idea?
Yes, and no.
Yes, my understanding is that ScrollView
and HorizontalScrollView
can be nested.
No, AFAIK, neither ScrollView
nor HorizontalScrollView
work with WebView
.
I suggest that you have your WebView
fit on the screen.
这篇关于两个方向滚动视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!