I have 3 AutoCompleteTextViews, and I would like to register 2 String [] adapters on them. I am currently doing this:
atw_from.setAdapter(new ArrayAdapter(ctx, android.r.layout.simple_dropdown_item_1line, stages_adapter));
Say my user wants to type “Középmező”, he starts typing “Közé” and he will be asked to select Középmező until it is quite simple. But what if the user is too lazy to gain accents (and many of them are lazy), so he will enter only Kozepmezo, then he will not receive any suggestion, since in my String there is no Cosepmezo. What I want, if he types “Kose”, he should be offered Középmez , therefore, even if he does not use accents, he will always be offered the actual word with accents.
I currently have a rather stupid solution, I have String [] with double the size of the original [], the first half contains words with accents, the second contains scattered versions. So now, if he gets Köze, he will be offered Középmező, and if he gets Köze, he will be offered Kozepmezo. It works because the server can handle both versions, but it just looks dumb and I want to solve it.
From what I understand, I have to make a full user adapter. Is this a better approach, or is there any solution included in the SDK? If I have to make a custom adapter, can someone point me in the right direction how to do this? :)
EDIT: added my own answer, should work for everyone, welcomes another answer that directed me in a good direction!