title: When updating a ListView of CheckBox items, is it better to update the individual view, or notifyDataSetChanged() and invalidateViews()?
body: <p>Both of these work, but is one better than the other?</p>
  
  <p>Update individual view:</p>
  
  <pre><code>public void onItemClick(AdapterView&lt;?&gt; adapterView, View view, int i, long l) {
      MyObject item = (MyObject) adapterView.getItemAtPosition(i);
      boolean isChecked = item.isChecked();
      item.setChecked(!isChecked);
      ((CheckBox)view.findViewById(R.id.checkBox)).setChecked(!isChecked);
  }
  </code></pre>
  
  <p>Update all views:</p>
  
  <pre><code>public void onItemClick(AdapterView&lt;?&gt; adapterView, View view, int i, long l) {
      MyObject item = (MyObject) adapterView.getItemAtPosition(i);
      item.setChecked(!item.isChecked());
      adapter.notifyDataSetChanged();
      getListView().invalidateViews();
  }
  </code></pre>