2011/7/6 Kostya Vasilyev <kmans...@gmail.com>:
> 06.07.2011 20:31, Guillaume пишет:
>>
>> if com.lib is the
>> lib package, I should be able to access com.lib.R from the
>> application
>
> Maybe it's just me, but I wouldn't call this a typical usage pattern. The
> way I do it, the library resources are accessed by the library code, and
> application resources - by the application code.
>
> The R.java merging is a build system implementation detail, and doesn't
> interfere with this (typical, to me) usage.

That's certainly the way I approach it. The library is self contained
and cannot access application-supplied resources, short of reflection
or passing in resource IDs.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to