EditText get focus does not automatically eject keyboard settings
The first display with EditText controls automatically gets focus and pops up the keyboard
If you do not want to eject the keyboard automatically, there are two ways:
method One: in the Mainfest file, the corresponding activity settings
Android:windowsoftinputmode= "Statehidden"
or android:windowsoftinputmode= "stateunchanged".
method Two: you can put a hidden textview in the layout, and then Requsetfocus in the OnCreate.
You can put a hidden textview in the layout, and then Requsetfocus in OnCreate.
Note TextView do not set visiable=gone, otherwise it will fail
<textview
Android:id= "@+id/text"
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content"
Android:focusable= "true"
Android:focusableintouchmode= "true"
/>
TextView TextView = (TextView) Findviewbyid (R.id.text);
Textview.requestfocus ();
EditText get focus does not automatically eject keyboard settings