wrap Content With Html for WebView - Android User Interface

Android examples for User Interface:WebView

Description

wrap Content With Html for WebView

Demo Code


//package com.java2s;

public class Main {
    public static String wrapWithHtml(String content) {
        return "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /></head><body>"
                + content + "</body></html>";
    }/*from  w w  w .jav  a 2s . c  om*/
}

Related Tutorials