Hi 

So ListView has a item layout 'simple_list_item_activated_1' which when used 
with 
ListView.CHOICE_MODE_SINGLE causes the item to stay activated causing a 
background 
highlight. ApiDemos has a sample under Lists/List17. 

The same item layout when used with ListView.CHOICE_MODE_MULTIPLE_MODAL 
causes the item to highlighted when multiselect mode gets activated on 
longitemclick. ApiDemos
again has a sample under Lists/List16. The problem here is that now on short 
press the item
is not highlighted like in List17 but highlight only works when multiselect 
mode gets enabled
on long press.

So what I am trying to achieve is that item stays activated/hightlighted on 
short press/itemClick
and also highlights when mutilselect mode gets enabled on long press. I tried 
playing around
with List16 and List17 code to see if I can get the functionality to work but 
havent got it
working. Any clues will be helpful. The Gmail app on tablet (Nexus 7) has this 
working where
itemclick highlights the message row and longitemclick goes into mutliselect 
mode with selected
rows highlighted. 

---
Take care,
Pankaj


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