Hello. I hope someone can help me here because I haven't found an
answer after extensive googling, forum posts and reading the relevant
parts of the API about 100 times.

I'm trying to create a multiple selection list where the selection is
represented graphically rather than with checkboxes. My list has
checkboxes, but I want them to serve a different purpose. I'm using a
cursor to hold my data and created a custom view binder for the
SimpleCursorAdapter. I did this for the checkboxes and general
flexibility.

So far I haven't even been able to show one line as being selected.
I've enabled multiple selection on the list and denied the children of
the list item focusability. I've tried manually changing background
color with the position fed in through the list item click listener.
But the wrong items get changed and they don't even change to the
right color. I've enabled touch focusability with no improvement
either.

Ideally, I'd like the trackball highlight focus bar to appear in
multiple places. But I don't think this is possible unless you use the
drawable directly. But I don't know  how to find or apply it. My next
idea was to have a slim view bar that changes color. But I had the
same problem with the wrong item being selected so I never finished
trying to guess the index position to see if this would work. My most
recent idea is to completely swap out the view for another one if it's
selected. But I have no idea how to do this either. I'm thinking of
using an array list to store the _id s of the items that need a
different view to get around the wierd selection problem. I'm also
thinking of passing in the ID field as my from and the selection view
as the to for my adapter. Then I'd intercept it with my binder and
change the view accordingly. But once again, I'm not sure how to do
this successfuly.

Any help would be appreciated.
Thank you.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to