Code example for SpannedString

Methods: toHtml

0
		settings.setDisplayZoomControls(false);
//		settings.setDefaultZoom(WebSettings.ZoomDensity.CLOSE); 
		settings.enableSmoothTransition();
		settings.setDefaultFontSize(14);
		 
		SpannedString s = new SpannedString(TablatureHolder.getInstance().getSelectedTab().getDetails());
		webview.loadData(Html.toHtml(s), "text/html", null);
		return webview;
	} 
 
	private View getLinkView() {
		// url 
		TextView textView2 = new TextView(getActivity());
		textView2.setGravity(Gravity.CENTER);
		textView2.setText(TablatureHolder.getInstance().getSelectedTab().getUrl());
		Linkify.addLinks(textView2, Linkify.ALL);
		return textView2;
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE