Android WebView renders blank/white, view doesn't update on css changes or HTML changes, animations are choppy

后端 未结 9 1513
不知归路
不知归路 2020-11-27 10:25

When ever I make a css class change, the changes don\'t always appear. This appears to happen when I have a touch event that adds something like a down class name to a butto

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-27 10:41

    For me this issue was only happening on Samsung devices. I was able to fix it by disabling Hardware Acceleration for WebViews:

    webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
    

    Hope it helps.

提交回复
热议问题