caltangelo caltangelo - 8 months ago 38
Android Question

android default xml layout not loading

I'm trying to make a ListActivity with check boxes using one of the built in android layouts,

. For background, I'm fetching the list in a private
, then calling the adapter like this:

listActivity.setListAdapter(new ArrayAdapter<String>(listActivity,
android.R.layout.simple_list_item_multiple_choice, mDisplayList));

However when I run my code, the
is displayed with
, which I'm using for all the other ListViews in my project. Any idea why this is happening?


The reason the right xml layout wasn't being used was because my AsyncTask was extending my (other) custom AsyncTask that used another xml layout and I left in this line.


which was at the end of the method so the inherited layout trumped the one I wanted.