I got a relative simple question. I have an activity with a lot of EditText's in them. When I open the activity it automatically focusses to the first EditText and displays the virtual keyboard.
How can I prevent this?
I got a relative simple question. I have an activity with a lot of EditText's in them. When I open the activity it automatically focusses to the first EditText and displays the virtual keyboard.
How can I prevent this?
this is the solution I am using, is not the best solution but it's working well for me
You can add this to your Android Manifest activity:
Add below code to your top of the activity XML and make sure the View is above EditText
If your view has EditText and Listview then Keyboard will open up by default. To hide keyboard from popping up by default do the following
Make sure you are requesting focus on listview after getting view for editText.
For e.g.
If you do it, then editText will get focus and keyboard will pop up.
Use this in your Activity's code: