Currently, when clicking into TextField or similar where manual input is requred the android virual keyboard pops up automaticaly, is there a way to prevent it and set it only when i manualy double click into the TextField?
ANDROID: Opening virtual keyboard only when doubleclicked?
110 Views Asked by Jiri Zaloudek At
2
There are 2 best solutions below
1

Ref: How to stop EditText from gaining focus at Activity startup in Android
<LinearLayout
android:focusable="true" //insert this line in your parent layout
android:focusableInTouchMode="true"//insert this line in your parent layout
android:layout_width="0px"
android:layout_height="0px"/>
<!-- :nextFocusUp and :nextFocusLeft have been set to the id of this component
to prevent the dummy from receiving focus again -->
<AutoCompleteTextView android:id="@+id/autotext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:nextFocusUp="@id/autotext"
android:nextFocusLeft="@id/autotext"/>
What this does is it makes the parent layout get the focus by deafult. Hence the focus will be present on the text view only if you press it twice
in Activity