【问题标题】:Rendering webview inside listview have annoying behaviour在 listview 中渲染 webview 有烦人的行为
【发布时间】:2013-09-09 06:36:09
【问题描述】:

我在 listview 中使用 webview 时遇到了一个奇怪的问题

webview 有时可能会工作,有时不显示任何内容,它只是呈现一个空的 webview

当我向 webview 添加固定高度时,它可以正常工作,但我需要通过包装内容保持高度,因为我无法定义内容的高度

谁能给我建议解决办法

【问题讨论】:

    标签: android listview webview


    【解决方案1】:

    我遇到了完全相同的问题。在我的情况下,我在 ListView 行的 LinearLayout 中渲染 WebView。删除父 LinearLayout 解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-05-13
      • 1970-01-01
      • 2019-10-08
      • 1970-01-01
      • 1970-01-01
      • 2012-12-22
      相关资源
      最近更新 更多