I have several android constructs such as custom dialogs, drag and drop and other standard classes that I use in several projects. It seems both inefficient and bad practice to put a copy of each construct in each project (each with its own set of resources and classes for support). Now, if I find a mistake in them, I have to change it everywhere.
Good practice dictates that I include this as a separate project, possibly a jar library that my other projects can import. This works great for constructs that are purely Java classes, but some of them have android resources associated with them, and I don't know if there is a way to include them in a jar, as the android resource compiler recognizes.
Is it possible to create a jar with Android resources turned on (i.e. a custom dialog box with a custom background or something else)? If possible, how?
source
share