Disable soft keyboard

android, android-edittext, keyboard

Solution

The initial state of the keyboard is configurable in your Android manifest, like this:

<activity
android:name=".MainActivity"
android:windowSoftInputMode="stateHidden"/>

Problem

I have an `edittext` in my layout, like this: ``` //... <EditText android:id="@+id/editText_username" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="@string/string_username" > </EditText> //... ``` And when the layout is shown, the keyboard appears with the focus on the `edittext`, but this just happens in ICS... And I don't want that the keyboard appears automatically, just when the `edittext` is clicked. How can I do this?

Original source

Related problems