0

I've managed to prevent my edit text from showing the keyboard when the view is entered. Now it only shows when I tap on it, this thanks to this line in my manifest (in the block dedicated to the corresponding activity) :

android:windowSoftInputMode="stateHidden"

Now I'm having the following problem, when I click the return button it doesn't hide the keyboard. What should I do ? Thanks.

EDIT : finally I solved it by adding android:imeOptions="actionDone" in my xml layout.

Rob
  • 15,732
  • 22
  • 69
  • 107

1 Answers1

2

yoi can use hideSoftInputFromWindow(....) by supplying the edittext window and force the keyboard to be hidden.

See this link.It will help you.

Community
  • 1
  • 1
Android Killer
  • 18,174
  • 13
  • 67
  • 90