2

I am working on a website to simply convert it into the android app using a WebView. The website has Google Translation and I want to achieve this functionality in the android WebView app.

I have searched a lot about this but did not find a proper solution. I have enabled JavaScript, below is the code:

binding.tland.getSettings().setJavaScriptEnabled(true);
binding.tland.getSettings().setLoadWithOverviewMode(true);
binding.tland.getSettings().setUseWideViewPort(true);
binding.tland.getSettings().setDomStorageEnabled(true);
binding.tland.getSettings().setLoadsImagesAutomatically(true);

The Google Chrome App is doing what exactly I want.

Desktop Google Chrome Screenshot

Android Google Chrom Screenshot

M Umer
  • 75
  • 2
  • 10

0 Answers0