The EditText control will automatically get the focus when it is displayed for the first time and the keyboard will pop up.
If you don't want the keyboard to pop up automatically, you can
The code copy is as follows:
Set the corresponding activity in the mainfest file
android:windowSoftInputMode="stateHidden"
or android:windowSoftInputMode="stateUnchanged".
The above is all about this article, I hope you like it.