Answer the question
In order to leave comments, you need to log in
[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
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 questionAsk a Question
731 491 924 answers to any question