I have an Activity
in Android, with two elements:
EditText
ListView
When my Activity
Is the actual problem that you just don't want it to have focus at all? Or you don't want it to show the virtual keyboard as a result of focusing the EditText
? I don't really see an issue with the EditText
having focus on start, but it's definitely a problem to have the softInput window open when the user did not explicitly request to focus on the EditText
(and open the keyboard as a result).
If it's the problem of the virtual keyboard, see the AndroidManifest.xml
android:windowSoftInputMode="stateHidden"
- always hide it when entering the activity.
or android:windowSoftInputMode="stateUnchanged"
- don't change it (e.g. don't show it if it isn't already shown, but if it was open when entering the activity, leave it open).