E
E
egotyner2015-07-10 04:15:18
Java
egotyner, 2015-07-10 04:15:18

[Android] Help! Drowning! How to check if the keyboard is active? Or maybe edittext is being edited?

It is necessary to disable the scrollview when the edittext is being edited, and the keyboard is in the active state (so that the text can be slid. Otherwise, the scrollview will scroll, not the edittext). Thanks in advance!!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Yudin, 2015-07-10
@deleted-Ruslan80849

This is?

A
Alex_Tysel, 2015-07-10
@Alex_Tysel

et1.addTextChangedListener(new TextWatcher() {
            @Override
            public void onTextChanged(CharSequence s, int start, int before, int count) {

                //  вызывается,когда добавляется каждый символ
            }

            @Override
            public void beforeTextChanged(CharSequence s, int start, int count, int after) {

                //  вызывается перед вводом
            }

            @Override
            public void afterTextChanged(Editable s) {

                // вызывается,когда ввод окончен
            }
        });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question