WebView height = wrap_content with changing font size doesn't work

后端 未结 7 1631
醉话见心
醉话见心 2020-12-19 06:54

I have webview with layout_height = \"wrap_content\". If I increase default font size, then webview height increases too. But if I decrease default font size, then webview h

7条回答
  •  再見小時候
    2020-12-19 07:24

    The issue is referenced Android's issue tracker here:
    https://code.google.com/p/android/issues/detail?id=18726

    If what you really want is a WebView wrapping your content it looks like the only work-around at the moment is to create a new WebView every time your content changes (which may not be acceptable when targeting low memory devices). It is the solution I have adopted anyway.

提交回复
热议问题