ho cercato di mostrare la tastiera dopo che ho gonfio LinearLayout e chiamo setContentView come:Come forzare la tastiera a mostrare/nascondere?
InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
mgr.showSoftInput(etContent, InputMethodManager.SHOW_FORCED);
getContent.requestFocus();
Non ha funzionato. Ho anche provato questo:
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
Ma non ha funzionato. Come posso forzare la tastiera a mostrare/nascondere? Che cosa ho fatto di sbagliato?
esatto duplicato di http://stackoverflow.com/questions/1109022/how-to-close-hide-the-android-soft-keyboard e http://stackoverflow.com/questions/2479504/forcing-the-soft-keyboard-open – Polynomial