Possible Duplicate:
Spinner with checkbox items, is it possible?
i want to add a checkbox in every row of my spinner so that when the use click on any row the checkbox should get checked and indicated that a particular row is clicked. i don't know how to do this please help me in doing that. my list is coming dynamically .
this is my spinner
MYspinner = new CustomSpinnerAdapter(getApplicationContext(),
Arrays.asList(getResources().getStringArray(R.array.pl_latest)));
MYspinner .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
ratingSpinner.setAdapter(spinnerAdp);
this is my constructor
public CustomSpinnerAdapter(Context listContext, List<String> asList) {
super(listContext, R.layout.textview_grey_rounded, asList);
// TODO Auto-generated constructor stub
}
textview_grey_rounded.xml
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="16dip"
android:singleLine="True"
android:textColor="#ffffff"
android:id="@+id/myText"
android:gravity="center"
/>