how to keep check box selection in ListView
<p>I have created a custom ListView..  every element of my ListView constructing from a layout.</p>

<p>My layout will have some TextViews and a ToggleButton. My ListView will have some 50 elemnts and my device screen can show 2 elements at a time.</p>

<p>Now if we select ToggleButton on a Item and scroll down my ListView , the selected item will be out of screen and when I come back to the previous selected item I am observinf that selection for that toggle button is gone.</p>

<p>I know that this is a normal behavior in android that It will construct the elements which is currently displaying.</p>

<p>But I want to keep that value.. Is there any way that we preserve selection. or can I tell ListView to donot construct every time.. memory is a not a issue for my application.</p>

<p>Please let me know if there's any good solution for this.</p>
