Force Android IME in full screen mode

I saw different questions on this, but not exactly what I am looking for. The question arises: how to configure IME to display in full-screen mode (when retrieving) when editing a certain editing text? I want the IME to behave as it sees fit, with the exception of this specific editing text, for which I need the IME to display it completely.

I tried the following, but it does not:

mEditText.setOnFocusChangeListener(new View.OnFocusChangeListener() { @Override public void onFocusChange(View v, boolean hasFocus) { if (hasFocus) { InputMethodManager input = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); if(input != null) { input.showSoftInput(mEditText, InputMethodManager.SHOW_FORCED); } } } }); 

Besides “why am I doing this,” any idea? I thought I could start working with one text text, but I would prefer to use the capabilities of IME. Thanks.

+6
source share

Source: https://habr.com/ru/post/947326/


All Articles