I have an activity with a search box (EditText
) on the top, and a ListView below. Whenever the activity starts, the EditText always has focus and bring up the keybo
Try this
On your Activity
Declaration in AndroidManifest.xml
add the below code :
android:windowSoftInputMode="stateHidden"
It will prevent the keyboard to popup up when activity becomes visible.
Happy coding :)
Here is the answer EditText, clear focus on touch outside.
Or you can just write widget which will show only text with textView and onClick
will display dialog with EditText
where you can edit this text/