R.java file not updating with UI element's id

Posted by Mohit Deshpande on Stack Overflow See other posts from Stack Overflow or by Mohit Deshpande
Published on 2010-03-21T13:40:22Z Indexed on 2010/03/21 13:41 UTC
Read the original article Hit count: 284

Filed under:

I added some UI elements to the main.xml file in the res\layout folder and when I try to access them through the call, R.layout.my_uielement, the UI element that I created is not there. Even when I add a new xml file with UI elements, it still doesn't show up in the R.layout class. I have made checked the ids on them and they have the correct format (I think): android:id="@+id/my_button". What could be the problem? Do I need to compile the code first?

© Stack Overflow or respective owner

Related posts about android