Does anyone know if this thread ended well? I attempting to create a fancy list with a multiple selection (in 1.6).
The following code give seemingly random results using a SimpleCursorAdapter ... @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); CheckedTextView cb = (CheckedTextView) v.findViewById(R.id.bulkload_ok); Log.d(Peeps.TAG, "view clicked was .. " + cb.isChecked()); if (cb.isChecked()){ cb.setChecked(false); Log.d(Peeps.TAG, "set to .. false == " + cb.isChecked()); } else { cb.setChecked(true); Log.d(Peeps.TAG, "set to .. true == " + cb.isChecked()); } v.refreshDrawableState(); //select_track(); } LAYOUT HERE: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="6sp"> <ImageView android:id="@+id/album_art" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingTop="6sp" android:paddingBottom="6sp" android:paddingLeft="10sp" android:maxWidth = "70sp" android:maxHeight= "70sp" android:adjustViewBounds="true" android:src="@drawable/icon" /> <TextView android:id="@+id/song_name" android:textSize="16sp" android:textStyle="bold" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingRight="70sp" android:paddingLeft="78sp" android:text="Song Title" /> <TextView android:id="@+id/song_album_title" android:textSize="14sp" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingLeft="78sp" android:layout_below="@id/song_name" android:layout_alignParentLeft="true" android:text="Album Title" /> <TextView android:id="@+id/song_artist_name" android:textSize="14sp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="78sp" android:layout_below="@id/song_album_title" android:layout_alignParentLeft="true" android:text="Artist Name" /> <CheckedTextView android:id="@+id/bulkload_ok" android:layout_alignTop="@+id/song_name" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_alignParentRight="true" android:checkMark="?android:attr/listChoiceIndicatorMultiple" android:checked = "false" android:text=""> </CheckedTextView> <TextView android:id="@+id/song_duration" android:textSize="12sp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/song_album_title" android:textColor="#FDFCDC" android:layout_alignParentRight="true" android:text="0:00" /> </RelativeLayout> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---