Dan Harvey
Dan Harvey

Reputation: 798

Android - Common style resources when using library projects?

I am making some shared libs that are common to several projects i am doing. Problem is that when it comes to XML, the library project's XML is not included in the main project. At the moment i am doing everything programmatically which is obviously not ideal.

Is there a way of doing this (other than pasting it manually every time)

Bearing in mind other members of the team have to use this "framework" too so i want it really to be a case of just reference it and use it without too much hassle.

Upvotes: 3

Views: 2192

Answers (1)

THelper
THelper

Reputation: 15619

You can access xml files in your libs as long as you import the lib as a "library project" (and not as a jar). Also make sure that all the resources in the lib have a unique name and do not conflict with a resource name in your project. For more information see also this page

Upvotes: 2

Related Questions