OK, I'm doing some other tests and there's no way I can make
CHOICE_MODE_SINGLE to work. I set an element as checked through
setItemChecked but than when I call getCheckedItemPosition I always
get -1 as a result.
CHOICE_MODE_MULTIPLE seems to work fine.

Andrea

On Sat, Jun 20, 2009 at 11:04 AM, Andrea Cardinale<[email protected]> wrote:
> Thanks for your answers ;)
>
> Andrea
>
> On Thu, Jun 18, 2009 at 10:35 PM, Romain Guy<[email protected]> wrote:
>>> Hey guys, a couple of thing I find strange about choiceMode.
>>> First of all setting it trough XML doesn't seem to have any effect ,
>>> in my ListActivity I retrieve choiceMode from the list and it's value
>>> is always 0.
>>
>> It's a bug I just fixed in Donut.
>>
>>>
>>> Nothing so important I set it through java
>>> getListView().setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
>>> What happens now, and probably is right and I should not care, is that
>>> each time I click on an item the list is completely rebuilt as I can
>>> see from onChildViewAdded in my OnHierarchyChangeListener.
>>
>> That's normal.
>>
>>>
>>> I can't see a reason why this should happen and I don't find it so
>>> good for performance especially if dealing with big list.
>>
>> It's normal and actually pretty well optimized.
>> --
>> Romain Guy
>> Android framework engineer
>> [email protected]
>>
>> Note: please don't send private questions to me, as I don't have time to
>> provide private support.  All such questions should be posted on public
>> forums, where I and others can see and answer them
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to