title: Uri is not registered for layout in test resources
body: <p>I'm new at Android testing and I'm trying to test a custom view in an android library and i'm using Android Studio.</p>
  
  <p>I found here : <a href="https://stackoverflow.com/questions/4913875/android-how-to-test-a-custom-view">Android: How to test a custom view?</a> that I should use <a href="http://developer.android.com/reference/android/test/ActivityUnitTestCase.html" rel="nofollow noreferrer">ActivityUnitTestCase</a> and a mock activity.
  I have put my xml layout inside projectname/library/src/androidTest/res/layout and my test activity know my layout R id thanks to this : <a href="https://stackoverflow.com/questions/26663539/configuring-res-srcdirs-for-androidtest-sourceset/26663749#26663749">Configuring res srcDirs for androidTest sourceSet</a>.
  My issues is in the layout content.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
              &lt;eu.custom.customView
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"/&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>In my case, "<a href="http://schemas.android.com/apk/res/android" rel="nofollow noreferrer">http://schemas.android.com/apk/res/android</a>" display in red with an error "URI not registered" and the IDE doe's not recognize my custom view if I add it in this xml.</p>
  
  <p>Is there a way to have this layout working without putting it in production code ?</p>
  
  <p>Thanks</p>