title: ViewBinder setViewValue only working sometimes
body: <p>I'm using a SimpleCursorAdapter and I'm not sure why this is working only sometimes. If I redo the same query I get different bindings. It has nothing to do with what the cursor has though I know.</p>
  
  <p>All I am trying to do is set the TextView to null if the <code>cursor.getString(cursor.getColumnIndex(...))</code> is null. It works sometimes, but not all of the time. This makes it very hard to debug of course. I noticed in LogCat that it seems to be getting the right value and setting it to the textview when it is not null, but it's not updating itself in the ListView. I have a long ListView at some times like 732 results. When I scroll through the list, I can see setViewValue being called and saying that it set the text, but nothing changed. The <code>TextView kanjiTextView = (TextView) view;</code> line has never been null either.</p>
  
  <pre><code>    mAdapter.setViewBinder(new SimpleCursorAdapter.ViewBinder() {
     public boolean setViewValue(View view, Cursor cursor, int columnIndex)
            {
               if (view.getId() == R.id.kanji)
                 {
                    if (cursor.getString(cursor.getColumnIndex("kanji")) == null)
                            {
                               view.setVisibility(View.GONE);
                               return true;
                            } else {
                               TextView kanjiTextView = (TextView) view;
                                 kanjiTextView.setText(cursor.getString(cursor.getColumnIndex("kanji")));
                        return true; 
                            }
                }
               return false;
            }
  </code></pre>
  
  <p>Is there something I'm missing here? Let me know if I need to post more LogCat stuff.</p>
  
  <p><a href="https://stackoverflow.com/questions/10776947/viewbinder-creates-random-content">ViewBinder creates random content</a> this answer seems kind of similar to my problem but I'm not sure if it's the same reason or not.</p>