Code example for WebView: Displaying local web pages

Methods: getSettingsloadDatasetBackgroundColor, setClickable, setFocusable

0
			convertView = inflater.inflate(this.viewHolder, null);
		} 
		TextView title = (TextView) convertView.findViewById(R.id.title);
	 
		WebView description = (WebView) convertView.findViewById(R.id.description);
		description.setBackgroundColor(0x00000000);
		 
		description.setFocusable(false);
		description.setClickable(false);
		description.getSettings().setTextSize(WebSettings.TextSize.SMALLER);
		String desc = item.getDescription();
		title.setText(item.getTitle());	
 
		desc = "<html><body><p align='justify'>"+Html.fromHtml(desc).toString()+"</p><a href='"+item.getLink()+"'>More >></a></body></html>";
		description.loadData(desc, "text/html", "utf-8");
		description.setClickable(true);
		return convertView;
		 
	 
	} 
	 
Stop searching for code, let great code find you!  Add Codota to your java IDE