Java tutorial
//package com.java2s; import android.webkit.WebSettings.LayoutAlgorithm; import android.webkit.WebView; public class Main { public static void setWebViewLayout(WebView webView, String content) { if (content.contains("<table")) { webView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.NARROW_COLUMNS); } else { webView.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN); } } }