Yeah,

I also want to know how to include customized xml layout in the helper library,

Because android will generate R.java and give the values to each element,

The value will start from the same value for all applications,

for example

all the first id will get value 0x7f0a0000, so there will be conflict
between R.java in helper library and the client project.

Is there any way to resolve this problem?

Regards

Larry/Xiangqian.liu





On Mon, Oct 12, 2009 at 3:02 PM, jax <[email protected]> wrote:
>
> But what if I want to include various xml values with my helper
> classes.  For example, if I create a new View control, how will I
> include the resource files that the view relies on?
>
>
>
> On Oct 11, 7:14 pm, jax <[email protected]> wrote:
>> ok thanks paul
>>
>> On Oct 11, 3:01 am, Paul Turchenko <[email protected]> wrote:
>>
>>
>>
>>
>>
>> > If you're going to use them in different projects, you should
>> > definitely use separate java library (not a separate android project).
>> > After that, simply include reference to that library to your
>> > projects.
>>
>> > On Oct 9, 4:25 pm, jax <[email protected]> wrote:
>>
>> > > I have some methods that I would like to put into a helper library so
>> > > that I can use them in different projects.
>>
>> > > How should I do this in eclipse.
>>
>> > > Make a new android project and put a package in it like
>> > > com.example.helper
>>
>> > > OR
>>
>> > > Make a new Java Project and the package com.example.helper
>>
>> > > OR
>>
>> > > just put the new package in the existing project
>>
>> > > Thanks
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to