title: Optimizing WebView Rendering...seeking alternatives to deprecated code
body: <p><a href="https://i.stack.imgur.com/xp8bO.png" rel="nofollow noreferrer">Code for rendering webview</a></p>
  
  <pre><code>String url = getIntent().getExtras().getString("url");
      webView = (WebView) findViewById(R.id.webView);
      WebSettings webSettings = webView.getSettings();
      webSettings.setJavaScriptEnabled(true);
      webView.loadUrl(url);
      webView.setWebViewClient(new WebViewClient());
      webView.getSettings().setBuiltInZoomControls(true);
      webView.getSettings().setDisplayZoomControls(false);
      webView.getSettings().setRenderPriority(WebSettings.RenderPriority.HIGH);
      webView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
      webView.getSettings().setAppCacheEnabled(true);
      webSettings.setDomStorageEnabled(true);
      webSettings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.NARROW_COLUMNS);
      webSettings.setUseWideViewPort(true);
      webSettings.setSavePassword(true);
      webSettings.setSaveFormData(true);
      webSettings.setEnableSmoothTransition(true);
      webView.getSettings().setRenderPriority(WebSettings.RenderPriority.HIGH);
      if(Build.VERSION.SDK_INT&gt;=Build.VERSION_CODES.KITKAT){
          webView.setLayerType(View.LAYER_TYPE_HARDWARE, null);
  
      }else{
          webView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
      }
  </code></pre>
  
  <p>I'm trying to load a webview in my android app, however some of the methods: setRenderPriority, setSmoothTransition,are deprecated...seeking alternatives</p>