简体   繁体   English

Webview不会在ViewPager中垂直滚动

[英]Webview does not scroll vertically inside ViewPager

We are trying to load html data into webview inside viewpager using PagerAdapter. 我们正在尝试使用PagerAdapter将html数据加载到viewpager内的webview中。 So, there are multiple pages with webview in viewpager. 因此,viewpager中有多个带有webview的页面。 All pages with webview loads data perfectly. 具有webview的所有页面均完美加载数据。 But, only first webview scrolls vertically. 但是,只有第一个Webview垂直滚动。 Other webviews are not vertically scrollable. 其他Web视图不可垂直滚动。 Please, help us to solve this problem. 请帮助我们解决这个问题。

I had exactly this problem. 我确实有这个问题。 The solution for my was change the library appcompat and support to a downgrade version. 我的解决方案是将库appcompat更改并支持降级版本。 I currently use this: 我目前使用这个:

compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:support-v4:23.0.1'
compile 'com.android.support:design:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.1'

Instead of 23.1.0 that block the scroll on my webviews. 而不是23.1.0阻止了我的Web视图上的滚动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM