Android Application Development Tutorial - 11 - Adding Resources and Setting Background
Top Comments
All Comments (100)
-
I deleted Thumbs.db files in Eclipse and errors gone :)
-
I keep getting errors in the Thumbs.db which restricts me from running my program. This occured after I did the clean thing.
-
JUST IN CASE
if some is getting "couldn´t resolve @drawable.."
make sure you have saved everything
and
restart Eclipse
and your background should be in the right place.
-
@WikiMagic Was the image in the correct .png format?
-
[2012-02-23 04:54:08 - DeviceMonitor] Adb connection Error:An existing connection was forcibly closed by the remote host .....I always get this message. what is this ?
-
I had the same problem and that worked for me. Thank you.
-
Wow thats totally it! My image actually starts with an uppercase. Well I'm to blame because Travis said it has to be lowercase, but then again, I really couldn't see the connection between an uppercase letter and the deletion of my R.java file.
Thanks for this valuable piece of information
-
@XGazudin If you never figured this out --- what I found is that your R.java file will be deleted if your image file has an uppercase letter in it. If you change the uppercase letter to a lowercase letter, then Build the project, this should fix the problem.
-
change the layout_width and layout_height to wrap_content and add layout_gravity="center" so you don't fuck up your image :)
-
how to add the sound?
@WikiMagic If the new splash_background image doesn't appear immediately and you're sure the code is correct...try closing the Eclipse IDE (after saving files) and reopen your project again in the Eclipse IDE and when you select the Graphical Layout tab it should now appear.
david3165 2 months ago 25
when i write the code in order the image to apear in the graphical layout it says error failed to convert help enyone?
WikiMagic 3 months ago 15