title: Including and using a XML layout all within an Android library jar
body: <p><strong>I want to create an Android jar library which has activities which use layouts that are all within the jar file.</strong></p>
  
  <p>I have been researching and trying different methods for the last few days and exhausted the related posts here. I have managed to get drawables and other raw assets to reside and be loaded from within the jar. However I have not been able to include valid resources which include the layouts. The official view is that it is not supported yet however I am sure it can be done. </p>
  
  <p>I see that this is possible with .aar libraries when using Gradle but I am unsure if .aar libraries are compatible with older Android projects.</p>
  
  <p>Could anyone shed some upto date info on this issue of resources/layouts in jar libraries and also the compatibility of .aar libraries.</p>
  
  <p>Many thanks</p>