Code example for SimpleCursorAdapter

Methods: setViewBinder

0
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);
		setViewBinder(this);
	} 
 
	@Override 
	public boolean setViewValue(View view, Cursor c, int arg2) {
		if (view instanceof ImageButton) {
			view.setTag(c.getString(1));
			return true; 
		} else if (view.getId() == R.id.result_example) {
			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