android - Checkbox not clickable in simple listview -


i have simple listview (not custom listview) checkbox in right side these checkboxes not clickable.

here mainactivity.java code:

setlistadapter(new arrayadapter<string>(this, android.r.layout.simple_list_item_multiple_choice, getresources().getstringarray(r.array.myarray))); 

and here xml code:

 <listview         android:id="@android:id/list"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_alignparentleft="true"         android:layout_alignparenttop="true"          >     </listview> 

also need find out checkbox clicked on click of button.

i have seen may questions posted on stackoverflow realeated custom listview.

listview.setchoicemode(listview.choice_mode_multiple); listview.setlistadapter(new arrayadapter<string>(this, android.r.layout.simple_list_item_checked, getresources().getstringarray(r.array.myarray))); 

Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -