带复选框的listview
requestWindowFeature(Window.FEATURE_NO_TITLE);
String hardCode[] = new String[]{"Local Weather", "Local Gas Price",
"Local
Movies", "Product Tips"};
setListAdapter(new ArrayAdapter<String>(this,
android.R.layout.simple_list_item_multiple_choice, hardCode));
ListView listView = getListView();
listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
listView.setItemChecked(2, true);