read
If you want to request focus and show keyboard when a view is loaded you should do:
  • Into the EditText XML add <requestFocus/> tag:
   <EditText>  
...
<requestFocus />
</EditText>
  • In the Application Manifest add the property "windowSoftInputMode":
   <activity  
...
android:windowSoftInputMode="stateAlwaysVisible"/>


Source

Blog Logo

Daniel Gomez Rico


Published

Image

MakinGIANTS

The findings and tips records of an Android-iOS-TheWholeShabang group

Back to Overview