A
A
Artem Kalachyan2013-10-16 06:06:18
Keyboard
Artem Kalachyan, 2013-10-16 06:06:18

Android 4.3 - Keyboard not hiding in EditText?

On the activity is textEdit, which should not display the keyboard. On android 2.3, this is what happens, on 4.3 it pops up, no matter what I do.

if (Build.VERSION.SDK_INT >= 11) {
            editResult.setRawInputType(InputType.TYPE_CLASS_TEXT);
            editResult.setTextIsSelectable(true);
        } else {
            editResult.setRawInputType(InputType.TYPE_NULL);
            editResult.setFocusable(true);
        }

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jimpanzer, 2013-10-16
@Bringoff

Have you tried options with TextView instead of EditText like here stackoverflow.com/a/6624816/1616443 ?
And if the task is not to copy part of the text from the final field, then using a simple TextView and the “Copy” button - which will place the content in the buffer - is normal practice.

R
Roman, 2013-10-16
@WNeZRoS

Why not set the android:editable = false attribute for a read-only field?
As far as I remember, the keyboard is not shown for such fields.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question