的WebView滚动android系统的问题? [英] WebView scrolling issue in android?

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

问题描述

我已经尝试了许多选择,但因为它精细滚动我的水平的WebView不垂直滚动。我在我的Andr​​oid应用程序添加的WebView显示在应用中的一些网页内容。内容仅仅是文字。但它比web视图的高度,更使我想提供设施,以用户滚动它来观看下一个页面的内容。但是,网页流量犯规水平滚动。

I have tried many options but my webview does not scrolls vertically as it scrolls fine horizontally. I have added webview in my android app to show some web content in the app. The content is just text. But it is more than the height of the webview so I want to provide the facility to the user to scroll it to watch the next page content. But webview doesnt scrolls horizontally.

下面是XML,我久事加载HTML字符串中了。

Here is the xml and I am juss loading the html string in it.

<WebView 
        android:id="@+id/webview"
        android:layout_width="fill_parent"
        android:layout_height="200dp"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:layout_marginTop="10dp"
        />

请帮我出并提供最佳的解决方案。先谢谢了。

Please help me out and provide the best solution. Thanks in advance.

推荐答案

其实我错把的WebView 中的滚动视图。因此,停止垂直滚动。

Actually I wrongly put the webview inside the scrollview. So it stops vertical scrolling.

这篇关于的WebView滚动android系统的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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