Galip Galip - 6 months ago 17
Android Question

Automatic popping up keyboard on start Activity

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?

Answer

Use this attributes in your layout tag in XML file:

android:focusable="true"
android:focusableInTouchMode="true"