I am sorry for being dense... How would I change setIcon(R.drawable.myIcon) using your technique? Are you saying do a global change in the base project by replacing all references of R.drawable.* with getResources().getDrawable (R.drawable.*)? Then during runtime it will properly resolve to the res directory of the base library not the res directory of the project using the library?
On Feb 25, 2:54 pm, Mark Murphy <mmur...@commonsware.com> wrote: > Ron wrote: > > What about all the Android APIs referencing resources such as setIcon > > (R.drawable.myIcon) > > You mean like the example I showed, of openRawResource()? > > You pass in the resource IDs from the APK. In the library, you use the > passed-in resource IDs. > > > I'm getting a feeling > > the resource architecture of Android doesn't lend itself to library > > sharing. > > It works perfectly fine. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---