G
G
guerrero3332019-03-11 16:55:09
Android
guerrero333, 2019-03-11 16:55:09

How to disable the automatic appearance of the virtual keyboard in Android?

I have Lineageos. Is there a way to somehow set it up so that when you click on the text field, the keyboard, for example, does not automatically jump out to a third of the screen, but some small button appears, by clicking on which the keyboard would already appear or even somehow disable it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Chris, 2019-03-12
@tv_dakota

Create your own class that extends EditText and override onCheckIsTextEditor

public class NoImeEditText extends EditText {
    public NoImeEditText(Context context, AttributeSet attrs) {
        super(context, attrs);
    }
    @Override
    public boolean onCheckIsTextEditor() {
        return false;
    }
}

and inside already hang the display of some 'small button' and return true, onCheckIsTextEditor()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question