Eclipse does not recognize the file ID

Posted by user1833845 on Stack Overflow See other posts from Stack Overflow or by user1833845
Published on 2012-11-18T16:39:36Z Indexed on 2012/11/18 17:00 UTC
Read the original article Hit count: 137

Filed under:
|

I'm trying to create a button in the application from one activity to another. The document resource/values/strings.xml created for this ID:

<string name="button1name"> CID </ string> 

But the document GurovPictures.java (this is my main activity) when I insert a line:

Button but1 = (Button) findViewById (R.id.button1); 

This "button1" does not become blue like "editText1". Do you happen to know how to fix it? Just the internet no entries found.

© Stack Overflow or respective owner

Related posts about android

Related posts about eclipse