I have 3 AutoCompleteTextViews, and I would like to register 2 String[] adapters on them. Currently, I'm doing this:
atw_from.setAdapter(new ArrayAdapter(ctx, android.r.layout.simple_dropdown_item_1line, stages_adapter));
Let's say my user wants to type "Középmező", he starts to type "Közé" and he will be offered to choose Középmező, until this, it is pretty simple. But what if the user is too lazy to type accents (and a lot of them are lazy), thus he will type Kozepmezo only, then he won't get any offer, since there is no Kozepmezo in my String[]. The thing I want is, if he types in "Koze", he should be offered Középmező, so even if he doesn't uses accents, he will be always offered the actual word with the accents.
Currently, I have a pretty silly solution, I have a String[] with double the size of the original [], the first half contains the words with accents, the second contains the deaccented versions. So now, if he types Közé, he will be offered Középmező, and if he types Koze, he will be offered Kozepmezo. It works because the server can process both versions, but it just looks silly, and I want to solve it.
From what I understand, I should make a full custom adapter. Is that the best approach, or is there any solution included in the SDK? If I should make the custom adapter, could anyone point me in the right direction, on how to do that? :)
EDIT: added my own answer, should work for everyone, cheers for the other answer, which directed me to the good direction!