title: Adding view from external library to xml layout
body: <p>I try to make xml layout with view from external library. In java code I add this library by </p>
  
  <pre><code>import org.mapsforge.android.maps.MapView;
  </code></pre>
  
  <p>so in xml file I tried
  </p>
  
  <pre><code>&lt;FrameLayout 
      xmlns:android="http://schemas.android.com/apk/res/android" 
      android:layout_height="fill_parent" 
      android:id="@+id/frameLayout1"
      android:layout_width="fill_parent"&gt;
      &lt;org.mapsforge.android.maps.MapView
          android:id="@+id/mapView"
          android:layout_height="fill_parent"
          android:layout_width="fill_parent"/&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>but I get error caused by inflating this view. How should I add MapView to FrameLayout to make it working? I would by grateful for help.</p>