ListView with checkbox - why the checkbox doesn't show?
问题 I'm using the ListView to provide a list for the user to choose from. Here is the main code: SimpleAdapter adapter = new SimpleAdapter(this,contacts, R.layout.list_contact, from_contacts, to_contacts); listview_selected_contact.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); listview_selected_contact.setAdapter(adapter); I wonder why the checkbox doesn't show? The program run properly just without the visible checkbox. Can anyone help? Here is the xml: <?xml version="1.0" encoding="utf-8"?>