When my activity starts, my edittext automatically gains focus, but the soft keyboard does not appear. Furthermore when I programatically call .requestFocus()
on a view, it gains focus but again the soft keyboard does not appear. An example of a view is as follows:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:padding="10dp">
<EditText
android:id="@+id/editTextTransactionName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="@string/edittext_description"
android:focusable="true"
android:focusableInTouchMode="true"
android:imeOptions="actionNext"
android:inputType="text"/>
</LinearLayout>
The soft keyboard only seems to appear if I click. Is there a reason for this to be the default behaviour? When opening an activity used as a form I would intuitively expect the keyboard to appear so you can enter data immediately.