[android-developers] Re: custom attributes in library projects
In my tests with the latest tools, the custom attribute's namespace
declaration in the library project needs to match the package
declaration of the including project. Correct?
As far as I can tell, this is a known limitation and the suggested
workaround is to copy the affected resources (e.g., main.xml in the
example above) into each of the including projects.
On Mar 16, 1:53 am, Clément Plantier <clemplant...@gmail.com> wrote:
> Issue 9656 says it's not possible to have custom attributes declared &
> used in library projects. This is fixed on SDK 11.
>
> About using an attribute that is declared in a library projet in
> multiple applications, I can't answer. Have you tried? What happens
> when you do it?
>
> On Mar 16, 6:26 am, joebowbeer <joe.bowb...@gmail.com> wrote:
>
> > What has been fixed and tested?
>
> > Issue 9656?
>
> >http://code.google.com/p/android/issues/detail?id=9656
>
> > Is it now possible to declare a custom attribute in a library project
> > and reuse it in multiple apps?
>
> > If so, what xmlns does one use when declaring this attribute? The
> > namespace of the library, or what?
>
> > Thanks in advance.
>
> > Joe
>
> > On Mar 9, 3:48 am, "C. Plantier" <clemplant...@gmail.com> wrote:
>
> > > This has been fixed (tested with latest SDK tools 10, platform API
> > > 11).
>
> > > On Feb 24, 12:41 pm, Romain <choicesm...@gmail.com> wrote:
>
> > > > Hi,
>
> > > > Any chance this has been fixed - or a workaround is available?
>
> > > > Library projects seem to be the best approach to release multiple versions
> > > > of an app (ex: free/paid),
> > > > and I was really hoping there is a better solution than to duplicate all of
> > > > my custom layouts in both apps.
>
> > > > Many thanks,
>
> > > > Romain
--
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