Hide ImageView when keyboard appears, and show it when keyboard disappear

android, android-edittext, android-imageview, keyboard

Solution

I think `OnFocusChangeListener` might be the right thing for you.

editText.setOnFocusChangeListener(new OnFocusChangeListener() {

    @Override
    public void onFocusChange(View v, boolean hasFocus) {
        // view/hide ImageView
    }
});

Problem

How can i hide `ImageView` when keyboard appears (after pressing on some `EditText`). And then show this `ImageView` when keyboard is dismissed?

Original source

Related problems