TsCyrille Posted June 29, 2010 Share Posted June 29, 2010 Bonjour, Je suis en train de saisir dans un "EditText" : le clavier est ouvert. Quand je clique ensuite sur un "Button" je voudrais fermer le clavier par code : comment faire ? Merci d'avance Link to comment Share on other sites More sharing options...
TsCyrille Posted July 8, 2010 Author Share Posted July 8, 2010 J'ai trouvé en utilisant ce code : InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.