title: How to make android jar library with inner xml (layout/string)
body: <p>I am creating a library, which should be distributed as a jar file.</p>
  
  <p>Public function is <code>void SomeLibClass.showSomeDialog(Context context)</code> and task library is dialog show with a complex View inside. No activity, nothing difficult.</p>
  
  <p>The pattern using library - developer add it to your project, and call in one place <code>SomeLibClass.showSomeDialog</code> and enjoy the funny dialog.</p>
  
  <p>Seems logical that the resources needed to render the dialog were inside the jar file(to avoid errors such as: jar updated, but no resources) - we need in jar file: layout, string, drawable, etc.</p>
  
  <p>And i want call resource by Id, like when i make layout i continue write like android:text="@string/hello"</p>
  
  <p>But this logical thing to do can not be obtained.. now i make all resources in jar file with prefix, but how to solve the problem with the same id in R.java?</p>
  
  <p>Or am I wrong look, and this is all we have to somehow do differently? Wants to repeat a simple - all you need for the library was in it.</p>