Adding XML and images as resources


Last Updated:

  1. Leolicos

    Leolicos Well-Known Member This Topic's Starter

    Joined:
    Jun 16, 2010
    Messages:
    54
    Likes Received:
    0
    I'm using Eclipse and I need to add more .xml layouts and images. To add layouts I right clicked the layout folder and clicked "add file" then saved it as "something.xml", but in the R class, the layout is not there. To add an image I simple created a folder called "drawable" and saved an image in that folder, but again in the R class, my image isn't there in the resource... How do I add them?
     

    Advertisement
  2. Boogs

    Boogs Well-Known Member

    Joined:
    Apr 6, 2010
    Messages:
    85
    Likes Received:
    16
    Make sure that you click Refresh in Eclipse first. Also, this may be a stupid question, but are there objects with id's in your XML file? And finally, I've had problems with images in my Android applications when I use upper case text, so try using lower case for your image names.
     

Share This Page

Loading...