Keyboard Popup when activity is started.

 Error: Pop-up keyboard and textedit selected when the activity is started.

The first solution is ;
 
This is hide keyboard and also nothing is not selected or focused.
 
Use this attributes in your layout tag in XML file:
android:focusable="true"
android:focusableInTouchMode="true"   
 
The second solution is ;
 
Put  android:windowSoftInputMode="stateHidden" in activity in the AndroidManifest.xml
 
This is only hide keyboard but the textedit is selected or focused.
 
<activity
 android:name="com.test.login"
 android:windowSoftInputMode="stateHidden"
 android:screenOrientation="portrait" />
 
 

Bu blogdaki popüler yayınlar

About Android padding, margin, width, height, wrap_content, match_parent, R Class

@SerializedName and @Expose annotations