Android, Add an extended view to xml layout
<p>i'm following this tut 
<a href="http://developer.android.com/resources/tutorials/views/hello-listview.html" rel="nofollow">http://developer.android.com/resources/tutorials/views/hello-listview.html</a></p>

<p>and i was wondering how can i add the customView to the main.xml layout</p>

<p>the xml:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" &gt;

    &lt;TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/main_title" /&gt;

    &lt;com.package.profile.view.HelloListView 
        android:id="@+id/listView1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"/&gt;
</code></pre>

<p>the HelloListView class package is com.package.profile.view</p>

<p>i get error
01-30 16:00:38.875: E/AndroidRuntime(27614): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.package.profile/com.package.profile.ListDemoActivity}: android.view.InflateException: Binary XML file line #12: Class is not a View com.package.profile.view.HelloListView</p>

<p>Thanks.</p>

<p></p>
