0
I’m using a webview to expose my site, but on the sides it has two white bars as in the photo.
Code:
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_principal);
WebView webView = (WebView) findViewById(R.id.web);
webView.loadUrl("https://www.meudominio.com/");
WebSettings ws = webView.getSettings();
ws.setAllowFileAccess(true);
ws.setCacheMode(WebSettings.LOAD_DEFAULT);
ws.setJavaScriptEnabled(true);
ws.setAppCacheMaxSize(5 * 1024 * 1024); //5mb
ws.setSupportZoom(false);
ws.setAppCacheEnabled(true);
ws.setLoadsImagesAutomatically(true);
ws.setAppCacheEnabled(true);
ws.setDatabaseEnabled(true);
ws.setDomStorageEnabled(true);
ws.setJavaScriptCanOpenWindowsAutomatically(true);
}