Including Android actions (and their layouts) in JAR files

I am trying to write a library that can be used as a JAR file. This library will include Activity, and I would like to include the layout in the JAR. Since it is not possible to include resource files in the JAR, and I don’t want end users to have to include these files themselves, I thought it would be nice to hack XML as a string and then manually inflate It. Does anyone know if this is possible? Any other ideas?

+5
source share
1 answer

The source XML layout files are converted to binary form and include resource identifiers baked during assembly.

, GUI , , , XML .

.

+3

All Articles