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

  • Question

  • User112 posted

    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?

    Friday, June 2, 2017 1:54 PM


  • User112 posted

    res-auto instead of package name does the trick

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Friday, June 2, 2017 2:02 PM