How to safely turn WebView zooming on and off as needed

前端 未结 9 1235
后悔当初
后悔当初 2020-12-15 01:06

As mentioned in this unanswered question: WebView throws Receiver not registered: android.widget.ZoomButtonsController

By turning the WebView zoom controls on and of

9条回答
  •  一向
    一向 (楼主)
    2020-12-15 01:49

    Add this to your activity:

    @Override
      public void finish() {
          ViewGroup view = (ViewGroup) getWindow().getDecorView();
          view.removeAllViews();
          super.finish();
    }
    

提交回复
热议问题