Android Subclass Listview problem
<p>I have a subclass of ListView.  My only problem is I can't get it to work (not the listview code, but the code to <em>use</em> the listview.  Android won't inflate it (app crashes).  I'm sure there is a simple way to get this to work, but I don't know how.</p>

<pre><code>PullToRefreshListView list;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) 
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.cliplistmain);

    context = this;
    list = (PullToRefreshListView)findViewById(R.id.clipListMain);
    list.setOnItemClickListener(this);
    list.setOnScrollListener(this);

    list.setOnRefreshListener(new OnRefreshListener(){
        @Override
        public void onRefresh() 
        {
            ClipStore.getInstance().getClips(SugarLoafContext.currentCamera);
        }
    });

    Button btn = (Button)findViewById(R.id.findclipsbtn);
    btn.setOnClickListener(this);
    SugarLoafContext.lastView = SugarLoafContext.LAST_VIEW_CLIP_LIST;

}
</code></pre>

<p>Here is my xml:</p>

<pre><code>&lt;ListView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/clipListMain" &gt;
</code></pre>

<p></p>
