Android: Cannot create a list with some items expandable and some items not
<p>How can I create a list with some items expandable and some items like a normal listView. I have got a normal listView working but cannot integrate expandable list items.  </p>

<p>Here is what I have so far</p>

<pre><code>public class Home extends ListActivity{


String[] items={"John", "Tom", "William", "Jake"};


@Override
public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);

  setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.home, items));

  ListView lv = getListView();
  lv.setTextFilterEnabled(true);

  lv.setOnItemClickListener(new OnItemClickListener() {
    public void onItemClick(AdapterView&lt;?&gt; parent, View view,
        int position, long id) {
      // When clicked, show a toast with the TextView text
      Toast.makeText(getApplicationContext(), ((TextView) view).getText(),
          Toast.LENGTH_SHORT).show();
    }
  });
}

}
</code></pre>

<p>Any help would be really appreciated.</p>

<p>Thanks in advance.  </p>
