Search code examples
androidandroid-edittextandroid-textinputedittext

how we can specify input language for specific EditText(not for whole app) any help will be appreciated


how we can specify input language for specific EditText(not for the whole app) any help will be appreciated ..for example, for EditText1, I want to open the English keyboard and for EditText2 want to open some other language any help...


Solution

  • You can't change the user's keyboard. Only system apps can do that.

    One possible workaround is to create your own custom keyboard views and switch programmatically.

    For this, you have to create separate layouts and classes(extends KeyboardView) for each language keyboard