Skip to content

Instantly share code, notes, and snippets.

@erkobg
erkobg / FilterCursorWrapper.java
Created December 19, 2015 19:56 — forked from ramzes642/FilterCursorWrapper.java
FilterCursorWrapper class creates a compatible cursor that uses a filter argument to quick search ListView in android. It can be useful when you need unicode case insensetive "like" search, but you don't want to rebuild android's sqlite with icu support.
private class FilterCursorWrapper extends CursorWrapper {
private String filter;
private int column;
private int[] index;
private int count=0;
private int pos=0;
public FilterCursorWrapper(Cursor cursor,String filter,int column) {
super(cursor);