1. In android2.2, if checkbox is placed in the item of listview, The setonitemclicklistener listening event of listview is invalid.
The solution can be to set the checkbox to fail to obtain the focus and fail to click in the XML statement of the checkbox. However, the consequence is to maintain the status of the checkbox in the code, for example:
<Checkbox
Android: layout_width ="Wrap_content"
Android: layout_height ="Wrap_content"
Android: layout_marginright ="10dp"
Android: layout_alignparentright ="True"
Android: Id ="@ + ID/adapter_taskmanager_cb_appischeck"
Android: focusable ="False"
Android: clickable ="False"
/>
2. There are too many items in the listview. We often find that the background is missing when dragging the listview. In this case, you can set the attribute of cachecolorhint to "@ Android: color/transparent" for the listview ", this problem can be solved! For example:
<Listview
Android: Id = "@ + ID/taskmanager_lv_app"
Android: layout_width = "match_parent"
Android: layout_height = "match_parent"
Android: layout_weight = "1"
Android: cachecolorhint = "@ Android: color/transparent">
</Listview>