[android-developers] Re: ListView checked state wrongly shared between 2 views when reorienting screen

2009-05-06 Thread Toph
Yes they do, but is that wrong? I thought it was ok to have multiple views with the same id. They are part of 2 different activities that share a common layout. On Apr 27, 10:17 pm, Romain Guy romain...@google.com wrote: Your two list views probably have the same id. On Sat, Apr 25, 2009

[android-developers] Re: ListView checked state wrongly shared between 2 views when reorienting screen

2009-05-06 Thread Toph
. On Wed, May 6, 2009 at 11:44 AM, Toph clo...@gmail.com wrote: Yes they do, but is that wrong? I thought it was ok to have multiple views with the same id.  They are part of 2 different activities that share a common layout. On Apr 27, 10:17 pm, Romain Guy romain...@google.com wrote

[android-developers] Re: ListView checked state wrongly shared between 2 views when reorienting screen

2009-05-06 Thread Toph
except when you need the views to save theirstate. The id is what identifies views when theirstateis saved so the toolkit simply think that your two list views are the same. But that's true within an activity only. On Wed, May 6, 2009 at 11:44 AM, Toph clo...@gmail.com wrote: Yes they do

[android-developers] ListView checked state wrongly shared between 2 views when reorienting screen

2009-04-27 Thread Toph
Hi, I have TabActivity that uses 2 other ListActivities for the tabs. Both underlying ListViews are set to CHOICE_MODE_MULTIPLE. When I run the following sequence of events, I get a strange result: 1) Setup one activity (tab) and its ListView using a CursorAdapter, including checking some items