sreymj Well-Known Member Dec 2, 2010 #1 How do you maintain HTML formatting with Html.fromHtml? The format is lost when displaying in a TextView.
How do you maintain HTML formatting with Html.fromHtml? The format is lost when displaying in a TextView.
V vinay1497 Lurker Dec 7, 2010 #2 Hello you can use HTML.fromHtml("html tags content"); to display it in text view Best of luck. Thanks Vinay Guntaka
Hello you can use HTML.fromHtml("html tags content"); to display it in text view Best of luck. Thanks Vinay Guntaka
sreymj Well-Known Member Dec 8, 2010 #3 vinay1497 said: Hello you can use HTML.fromHtml("html tags content"); to display it in text view Best of luck. Thanks Vinay Guntaka Click to expand... That is what I am currently using. But, the HTML formatting is lost when displayed in the TextView.
vinay1497 said: Hello you can use HTML.fromHtml("html tags content"); to display it in text view Best of luck. Thanks Vinay Guntaka Click to expand... That is what I am currently using. But, the HTML formatting is lost when displayed in the TextView.
sreymj Well-Known Member Dec 8, 2010 #4 vinay1497 said: Hello you can use HTML.fromHtml("html tags content"); to display it in text view Best of luck. Thanks Vinay Guntaka Click to expand... As it turns out, I was approaching this all wrong. The correct solution is to use the WebView. WebView webview; webview = (WebView) findViewById(R.id.WebView01); webview.getSettings().setJavaScriptEnabled(true); webview.loadUrl("http://someurl.com"); Hello, WebView | Android Developers
vinay1497 said: Hello you can use HTML.fromHtml("html tags content"); to display it in text view Best of luck. Thanks Vinay Guntaka Click to expand... As it turns out, I was approaching this all wrong. The correct solution is to use the WebView. WebView webview; webview = (WebView) findViewById(R.id.WebView01); webview.getSettings().setJavaScriptEnabled(true); webview.loadUrl("http://someurl.com"); Hello, WebView | Android Developers