Re: [android-developers] Re: Some coding errors from a novice
Not true.
It's enough to have images only in "res/drawable" to satisfy resource
dependencies.
This probably won't look good, and require alternate resources in
"res/drawable-hdpi-v4" and "res/drawable-ldpi-v4", but that's another
matter entirely.
2OP:
You *never* edit R.java yourself. To add images, put them into the
folder in Eclipse. This triggers a rebuild, which automatically updates
R.java to include the new resource ID.
You should also take a look at this:
http://developer.android.com/guide/topics/resources/index.html
-- Kostya
18.11.2010 15:30, student пишет:
> Hi James,
> whenever you add a new image, u should remember that, u have to add
> the same image in res folder -> drawable (3 category) right same image
> to add these 3 category. otherwise i wont display image and its error
> should be No resources found.
>
> U can't edit the R.java, it will be build implicitly.Once ,after u
> created any modification need to change layout u should clear all
> before whatever u built. (project -> clear all) then go to file and
> select Build all
>
> I hope it wil work fine.
>
> Thanks and Regards
> Student
>
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home