Code example for SimpleCursorAdapter

Methods: setViewBinder

public class SearchWordsAdapter extends SimpleCursorAdapter implements
		ViewBinder { 
	public SearchWordsAdapter(Context context, int layout, Cursor c,
			String[] from, int[] to, int flags) {
		super(context, layout, c, from, to, flags);
	public boolean setViewValue(View view, Cursor c, int arg2) {
		if (view instanceof ImageButton) {
			return true; 
		} else if (view.getId() == {
			TextView exampleView = (TextView) view;
			String exampleText = c.getString(3);
			String expressionText = c.getString(1);
			if (exampleText.contains(expressionText)) {
				String html = "<b>" + expressionText + "</b>";
Connect your IDE to all the code out there  Get Codota for Java