Skip to content Skip to sidebar Skip to footer

Modify Autocompletetextview To Show Results With Local Special Characters

It was hard to write a proper topic for this issue. So, let me make myself clear. I'm making a local app, dealing with data containing Turkish letters (ĞÜŞİÖÇğüşıöç). P

Solution 1:

You have a few choices. For example, when user type ozgur, show him the combinations of this word with turkish letters by replacing o with ö and u with ü. Something like that.

privatechartoTurkish(char c) {

    if(c == 'o')  return'ö';
    if(c == 'u')  return'ü';
    //...
}

privatevoidusage() {

   String word = "ozgur";

   for(i = 0; i < word.length; i++) {

       word.setCharAt(i, toTurkish(word.charAt(i)));
   }

}

Or create a manual list that contains turkish words by adding turkish dictionary file to your app. Compare using Regex when user types.

Or create a layout above the keyboard and put the letters. I'd choose this way. No need for AutoCompleteTextView.

Post a Comment for "Modify Autocompletetextview To Show Results With Local Special Characters"