1

I have EditText in a Fragment that is shown when my Activity is started.

I would like to show show softkeyboard just after the launch.

I've used code from show-soft-keyboard-when-activity-starts this question in onStart method of the Fragment, but it doesn't work.

In which Fragment method I should put this code?

Community
  • 1
  • 1
pixel
  • 24,905
  • 36
  • 149
  • 251

1 Answers1

1

In fact the best solution was to put android:windowSoftInputMode=stateVisible in Activity section of AndroidManifest.xml

It worked perfectly.

pixel
  • 24,905
  • 36
  • 149
  • 251