Hi! I've been fiddling around with the android lists trying to customize the layout of the items I put in my choice-multiple list.
The default layout for this is the following: myItem [ ] myItem [x] myItem [ ] but I want to put the checked/unchecked item in front of myItem like this: [ ] myItem [x] myItem [ ] myItem I have "sort-of" solved it but I feel it is a bit of a hack. Here is what I did: 1. Copied the simple_list_item_multiple_choice.xml to my project 2. Modified it to this: <CheckedTextView xmlns:android="http://schemas.android.com/apk/res/ android" android:id="@android:id/text1" android:layout_width="fill_parent" android:layout_height="?android:attr/listPreferredItemHeight" android:textAppearance="?android:attr/textAppearanceLarge" android:gravity="center_vertical" <!-- android:checkMark="?android:attr/ listChoiceIndicatorMultiple" Removed--> android:paddingLeft="6dip" android:paddingRight="6dip" android:drawableLeft="?android:attr/listChoiceIndicatorMultiple" <!-- Added by me--> /> 3. set it to my listadapter (arrayadapter). This creates the look I want for my multiple choice list but I feel this is sort of a hack since I no longer set the "android:checkmark"- attribute. The icon I added appears and reacts to clicks in the correct way. So, to sum up: Is there a corrrect way move the checkbox or is this it? Br Grindah --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---