Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How to reference declare-styleable attributes from within a library?

MihaMarkicMihaMarkic SI ✭✭✭✭

As per caption, I have some declare-styleable attributes in an android library and would like to apply those within the same library in a layout.
If layout were inside an application, I'd create a namespace that ends with package name. But if layout is within the same library, it won't work - "No resource identifier for attribute ...."

So, is there a way?

Tagged:

Best Answer

  • MihaMarkicMihaMarkic SI ✭✭✭✭
    Accepted Answer

    res-auto instead of package name does the trick

Answers

  • MihaMarkicMihaMarkic SI ✭✭✭✭
    Accepted Answer

    res-auto instead of package name does the trick

Sign In or Register to comment.