title: How to get data from custom ListView to use in Activity?
body: <p>I'm working on a custom <code>ListView</code> with a custom <code>ListAdapter</code> based on <code>BasedAdapter</code>. My <code>ListView</code> item has a <code>ToggleButton</code> and an <code>EditText</code>. In the activity that uses this <code>ListView</code>, I have a <code>Button</code> called <code>Save</code>. When I click <code>Save</code>, the activity must find someway to get data from <code>ListView</code> to do some stuffs with this.</p>
  
  <p>In the custom <code>ListView</code> adapter, I use an <code>ArrayList</code> to keep track change in <code>DataItem</code>, with represents the model for the <code>ListView</code> item (contains a <code>boolean</code> variable for the <code>ToggleButton</code> and a <code>String</code> for the text in <code>EditText</code>).
  The problem is that when I click <code>Save</code>, I must, somehow, get the data from the <code>ArrayList</code> from the adapter, which also consists of updated data of <code>EditText</code> and <code>ToggleButton</code> in each list item?</p>
  
  <p>How can I do that?</p>