Jump to content

[Résolu] Impossible d'utiliser R.id


vrnxsz

Recommended Posts

Bonjour,

Je n'arrive pas à "récupérer" un edit créé dans le layout main.xml. En fait mon problème réel c'est que la ressource R.id ne semble pas être utilisable.

J'ai bien R.layout etc mais R.id non. Il me le souligne, et impossible d'utiliser.

private EditText ed_action = (EditText) findViewById(R.id.ed_action);

C'est chiant je sais pas pourquoi ca fait ca. :(

Printscreen1:

cf7e72ccffc447719aad6adc429e355e.jpg

Printscreen2:

6d23d85c69b38871cfdb7a50651fbce6.jpg

EDIT: Ah c'est bon. C'était un problème dans le fichier Strings.xml.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...