I have android app in which one layout contains Linearlayout
, ScrollView
, TextView
, EditView
and Button
. when I
You can hide keyboard by add two lines to the parent view of editText.
android:focusable="true"
android:focusableInTouchMode="true"
In your AndroidManifest.xml
:
<activity android:name="com.your.package.ActivityName"
android:windowSoftInputMode="stateHidden" />
More details about windowSoftInputMode
can be found here.
This setting will hide soft keyboard when user enters new Activity (even if EditText control gains the focus). Soft keyboard will be shown only when user clicks the edit box control.