On Wed, Feb 23, 2011 at 11:56 PM, Manish Garg <[email protected]>wrote:
> 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. > No one said anything about traversing your list and reseting everything every time. You have a getView() function in your adapter, right? You populate the view based on the data in your array, right? Then you items in your array should have the checked state and update the view when getView() is called. That's it. ------------------------------------------------------------------------------------------------- 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

