Search code examples
androidon-screen-keyboard

Android - language of onscreen keyboard


In system I have defined 3 different keyboards (Czech, Slovak, Russia) and I want to switch between them programmatically without calling InputMethodManager.showInputMethodPicker(), because it show the selector, which I don't want. How to do it? Please for Android 10 system.


Solution

  • Yes, it's possible, for example, switch onscreen keyboard layout to Slovakia at runtime, in kotlin:

    myEditText.imeHintLocales = LocaleList(Locale("sk", "SK"))