0

我正在尝试在 Android [HTC Desire Z] 上的 webview 中加载此网页https://chat1a.livechatinc.com/licence/1051791/open_chat.cgi,但我无法让它滚动其内容。

当我使用 Android 网络浏览器时,滚动条也不会出现。问题在于无法显示该网页的所有内容。我尝试了不同的技巧,这就是我的新布局现在的样子。

最有趣的是,它在 iOS/iPhone 上运行良好,但在 Android 上却不行!

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bg"
android:fillViewport="true" >

<WebView
    android:fillViewport="true" 
    android:id="@+id/wvLiveChat"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"        
    android:scrollbars="vertical" />

</ScrollView>
4

1 回答 1

0

我建议不要将 webview 放在滚动视图中。有很多文档说明为什么应该避免这样做。

于 2013-02-07T04:13:11.370 回答