两个方向滚动视图 [英] two directional scroll view

查看:134
本文介绍了两个方向滚动视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想有与顶部的标题部分和下方的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.

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.

这篇关于两个方向滚动视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆