I have a (array) list
Car
Something
Šibica
Čavao
Cavao
Is there a way to \"force\" AutoCompleteTextView so if user type in letter \"c\"
@svenkapudija 's excellent answer can be generalized to most Latin script languages using java.text.Normalizer
. In the filter code, replace:
String valueTextNoPalatals = toNoPalatals(valueText);
String prefixStringNoPalatals = toNoPalatals(prefixString);
with:
String valueTextNoPalatals = Normalizer
.normalize(valueText, Normalizer.Form.NFD)
.replaceAll("[^\\p{ASCII}]", "")
.toLowerCase();
String prefixStringNoPalatals = Normalizer
.normalize(prefixString, Normalizer.Form.NFD)
.replaceAll("[^\\p{ASCII}]", "")
.toLowerCase();