Hello,

I have a list of items and wish to override Android's (honeycomb)
default behavior of highlighting the selected item. In the theme I am
using "holo dark", a selected ListView item will have bold text
instead of regular text with ListView.CHOICE_MODE_SINGLE set.

My question is, how can I make my own highlighting scheme? I can do
this by extending ListAdapter and overrriding getView to render a
different TextView for when an item is selected. This works fine when
CHOICE_MODE_SINGLE is set, except it also makes my TextView bold,
which I don't want.

So I set CHOICE_MODE_NONE to get around this and this almost works...
except the highlighted item is not redrawn immediately like it is when
CHOICE_MODE_SINGLE is set. My custom TextView is rendered, but only
after I select the item, scroll the item off the visible screen and
then scroll it back on screen.

I'm guessing there is some difference in when the drawable is rendered
depending on if a ListView has CHOICE_MODE_SINGLE set or
CHOICE_MODE_NONE set, but I can't figure out where or how I can
automatically trigger it to be redrawn.

SO! Can I either a) disable the bolding of text with
CHOICE_MODE_SINGLE set or b) change the behavior or redraw an item
with CHOICE_MODE_NONE set or c) something else entirely?

-- 
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