android - How can I change between language in a single IME? -
i trying make korean ime, can't find example.
how can change between languages in single ime?
i mean, in apple's ime, uses globe icon switch between languages.
you can 1 of 2 ways. first way change keyboard layout. there's no rule says language on keyboard has match onscreen language. example of swype- allows chang language of keyboard without changing language of rest of ui, useful bilingual typers. totally internal app, need track keyboard language , show correct key layout.
the other way set phone's locale. disadvantage change language used inside of app, , other apps. this, use
locale locale = new locale(languagecode); locale.setdefault(locale); configuration config = new configuration(); config.locale = locale; getbasecontext().getresources().updateconfiguration(config, getbasecontext().getresources().getdisplaymetrics());
Comments
Post a Comment