两个方向滚动视图视图、方向、两个

2023-09-13 23:41:31 作者:画个○○诅咒你

我想有与顶部的标题部分和下方的WebView一个LinearLayout中。首标将是短期和web视图可能比屏幕更长更宽。

什么是让水平和垂直滚动的最好方法?嵌套在一个Horizo​​ntalScrollView滚动型是一个好主意?

解决方案   

嵌套在一个Horizo​​ntalScrollView一个好主意,一个滚动型?

是的,没有。

是的,我的理解是,滚动型 Horizo​​ntalScrollView 可以嵌套。

没有,AFAIK,无论滚动型 Horizo​​ntalScrollView 工作与的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.

solidworks如何调整视图方向

What is the best way to get horizontal and vertical scrolling? Is a ScrollView nested inside a HorizontalScrollView a good idea?

解决方案

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.