Aller au contenu

Affichage clavier


maxxoune

Recommended Posts

Posté(e)

J'aurais besoin d'utiliser un équivalent de ceci :

android:windowSoftInputMode="stateVisible"

mais en ligne de code.

Quelqu'un aurait une solution ? Merci

Posté(e)
input = new EditText(this);
InputMethodManager keyboard = (InputMethodManager)    getSystemService(Context.INPUT_METHOD_SERVICE);
keyboard.showSoftInput(input, 0);

  • 2 weeks later...
Posté(e)

input = new EditText(this);
InputMethodManager keyboard = (InputMethodManager)    getSystemService(Context.INPUT_METHOD_SERVICE);
keyboard.showSoftInput(input, 0);

Merci :)

L'effet est pas tout a fait le même, mais ça marche très bien ( j'avais pourtant déjà essayé surement un mauvais paramètre).

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

×
×
  • Créer...