*> but if i scroll list, android will > show some of the row items as checked because of ListView recycling > problem.*
view recycling is not a problem... It is a feature. You technically don't HAVE to recycle views if you don't want to. Just ignore the convertView parameter. > I can set and reset checkbox in onClick but it will reduce efficiency > of my application. No. Efficiency is significantly better when using view recycling. And what do you mean by set and reset in onClick? When I handle view recycling it is in the adapter's getView method. > Everytime i have to traverse my list and have to > set or reset a checkbox. That is just part of the overhead of using view recycling. This overhead is insignificant compared to the benefits of View recycling. > There should be some other way so that > android can take care of it. And what would you propose? On Wed, Feb 23, 2011 at 10:56 PM, Manish Garg <[email protected]>wrote: > if i maintain one arraylist and set and reset particular position in > the onclick function, i will be able to get the correct list items > which has been checked by the user. but if i scroll list, android will > show some of the row items as checked because of ListView recycling > problem. > > I can set and reset checkbox in onClick but it will reduce efficiency > of my application. Everytime i have to traverse my list and have to > set or reset a checkbox. There should be some other way so that > android can take care of it. > > There is one property choice mode, i am not sure why this property is > not working with simpleAdapter. > > On Feb 23, 8:43 pm, TreKing <[email protected]> wrote: > > On Tue, Feb 22, 2011 at 11:49 PM, cool.manish <[email protected] > >wrote: > > > > > Even if i maintain it by myself, i have to do same also in the list, > for > > > display purpose. > > > > I don't know what that means. > > > > > ------------------------------------------------------------------------------------------------- > > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > > transit tracking app for Android-powered devices > > -- > 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 > -- 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

