Mira ver si este ejemplo te ayuda a solucionar el problema de los caracteres que no se incluyen en la búsqueda...
En el MainActivity o donde implementes el TextWatcher prueba
EditText etSearch;
BaseAdapterFilterable adapter;
etSearch.addTextChangedListener(new TextWatcher() {
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
// Listview name of the class
Listview.this.adapter.getFilter().filter(s);
}
@Override
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
// TODO Auto-generated method stub
}
@Override
public void afterTextChanged(Editable s) {
// TODO Auto-generated method stub
}
});
En tu adaptador pon esta clase para usar el metodo getfilter
@Override
protected FilterResults performFiltering(CharSequence constraint) {
// TODO Auto-generated method stub
FilterResults Result = new FilterResults();
// if constraint is empty return the original names
if(constraint.length() == 0 ){
Result.values = Original_Names;
Result.count = Original_Names.size();
return Result;
}
ArrayList<String> Filtered_Names = new ArrayList<String>();
String filterString = constraint.toString().toLowerCase();
String filterableString;
for(int i = 0; i<Original_Names.size(); i++){
filterableString = Original_Names.get(i);
if(filterableString.toLowerCase().contains(filterString)){
Filtered_Names.add(filterableString);
}
}
Result.values = Filtered_Names;
Result.count = Filtered_Names.size();
return Result;
}
@Override
protected void publishResults(CharSequence constraint,FilterResults results) {
// TODO Auto-generated method stub
Names = (ArrayList<String>) results.values;
notifyDataSetChanged();
}
}
Tambien en tu adaptador retorna una instancia desde la clase filter_here
@Override
public Filter getFilter() {
return filter;
}
Nota: En el constructor de tu adaptador inicializa el objeto from filter class "filter_here filter = new filter_here();" sobreescribe el metodo getfilter y retorna filter