That's a topic I want some more info about too, the way I do it now is
making symbolic links from these resources to different projects. I
guess this would work on Windows too, as it too has symbolic links.

On Jun 14, 8:49 am, xamar <pablo.lopez.ja...@gmail.com> wrote:
>     Hello.
>
>  * In short:
>
>  What's the proper way to share code and layouts between Android
> projects?  (I work with Eclipse)
>
>  * Explanation and my problem:
>
>    I'm working in multiple projects that share the same base (an
> activity-less Android project). This project have some graphical
> classes with its layouts in xml and require both to work properly.
> Normally I copy this code and change the R.id definitions on the
> project to match the current 'sub-project' but, obviously, this is not
> the proper way of reusing code.
>
>   Now I have two Eclipse projects, one of them has the 'base' code
> and the other is the current application. I defined a dependency but
> it seems that I can refer to the classes from Java, but I can't in
> this other project's layouts. I tried declaring its namespace in XML
> files, but it doesn't work.
>
>   I can't believe the way is copy+paste and search+replace...
>
> Kind regards,
>   Pablo
--~--~---------~--~----~------------~-------~--~----~
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