Une activité, j'ai résolu le problème en ajoutant mon champ en mode graphique dans le main.xml
D'habitude je n'ai pas à faire ca, la cause et ce findViewById
Doit on toujours creer le champ dans en mode graphique pour avoir une liaison entre
1 2 3 4 5 6 7
| <EditText android:id="@+id/EditTextPrenom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_gravity="bottom"
android:hint="@string/prenomHint"
/> |
et
editText = (EditText) findViewById(R.id.EditTextPrenom);
Partager